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