Browse Source

Fix Adresa v e-mailu k zveřejnění čísla

middleware_test
Jonas Havelka 3 years ago
parent
commit
8ba08dbcc5
  1. 3
      seminar/models.py

3
seminar/models.py

@ -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…
Cancel
Save