Fix Adresa v e-mailu k zveřejnění čísla
This commit is contained in:
parent
6255c9c957
commit
8ba08dbcc5
1 changed files with 2 additions and 1 deletions
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue