|
@ -5,6 +5,7 @@ import subprocess |
|
|
import pathlib |
|
|
import pathlib |
|
|
import tempfile |
|
|
import tempfile |
|
|
|
|
|
|
|
|
|
|
|
from django.contrib.sites.shortcuts import get_current_site |
|
|
from django.db import models |
|
|
from django.db import models |
|
|
from django.contrib import auth |
|
|
from django.contrib import auth |
|
|
from django.utils import timezone |
|
|
from django.utils import timezone |
|
@ -642,7 +643,7 @@ class Cislo(SeminarModelBase): |
|
|
|
|
|
|
|
|
def posli_cislo_mailem(self): |
|
|
def posli_cislo_mailem(self): |
|
|
# parametry e-mailu |
|
|
# parametry e-mailu |
|
|
odkaz = self.verejne_url() |
|
|
odkaz = str(get_current_site(None)) + '/' + self.verejne_url() |
|
|
|
|
|
|
|
|
poslat_z_mailu = 'zadani@mam.mff.cuni.cz' |
|
|
poslat_z_mailu = 'zadani@mam.mff.cuni.cz' |
|
|
predmet = 'Vyšlo číslo {}'.format(self.kod()) |
|
|
predmet = 'Vyšlo číslo {}'.format(self.kod()) |
|
|