|
@ -5,6 +5,7 @@ from django.utils import timezone |
|
|
from django.conf import settings |
|
|
from django.conf import settings |
|
|
from django.utils.encoding import force_text |
|
|
from django.utils.encoding import force_text |
|
|
from django.core.exceptions import ObjectDoesNotExist |
|
|
from django.core.exceptions import ObjectDoesNotExist |
|
|
|
|
|
from django.utils.functional import cached_property |
|
|
from django.utils.text import get_valid_filename |
|
|
from django.utils.text import get_valid_filename |
|
|
|
|
|
|
|
|
from seminar.models import Organizator |
|
|
from seminar.models import Organizator |
|
@ -122,6 +123,7 @@ class KorekturovanePDF(models.Model): |
|
|
# uložíme png a změněný počet stran |
|
|
# uložíme png a změněný počet stran |
|
|
self.convert() |
|
|
self.convert() |
|
|
|
|
|
|
|
|
|
|
|
@cached_property |
|
|
def cislo_a_tema(self): |
|
|
def cislo_a_tema(self): |
|
|
nazev_split = self.nazev.split() |
|
|
nazev_split = self.nazev.split() |
|
|
try: |
|
|
try: |
|
|