|
|
@ -50,7 +50,7 @@ class SeminarModelBase(models.Model): |
|
|
|
# viz https://ovvp.mff.cuni.cz/wiki/aesop/export-skol. |
|
|
|
# |
|
|
|
|
|
|
|
@reversion.register(ignore_duplicate_revisions=True) |
|
|
|
@reversion.register(ignore_duplicates=True) |
|
|
|
@python_2_unicode_compatible |
|
|
|
class Skola(SeminarModelBase): |
|
|
|
|
|
|
@ -110,7 +110,7 @@ class Skola(SeminarModelBase): |
|
|
|
self.mesto)) |
|
|
|
|
|
|
|
|
|
|
|
@reversion.register(ignore_duplicate_revisions=True) |
|
|
|
@reversion.register(ignore_duplicates=True) |
|
|
|
@python_2_unicode_compatible |
|
|
|
class Resitel(SeminarModelBase): |
|
|
|
|
|
|
@ -247,7 +247,7 @@ class Resitel(SeminarModelBase): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@reversion.register(ignore_duplicate_revisions=True) |
|
|
|
@reversion.register(ignore_duplicates=True) |
|
|
|
@python_2_unicode_compatible |
|
|
|
class Rocnik(SeminarModelBase): |
|
|
|
|
|
|
@ -316,7 +316,7 @@ def cislo_pdf_filename(self, filename): |
|
|
|
rocnik = str(self.rocnik.rocnik) |
|
|
|
return os.path.join('cislo', 'pdf', rocnik, '{}-{}.pdf'.format(rocnik, self.cislo)) |
|
|
|
|
|
|
|
@reversion.register(ignore_duplicate_revisions=True) |
|
|
|
@reversion.register(ignore_duplicates=True) |
|
|
|
@python_2_unicode_compatible |
|
|
|
class Cislo(SeminarModelBase): |
|
|
|
|
|
|
@ -426,7 +426,7 @@ class Cislo(SeminarModelBase): |
|
|
|
return c |
|
|
|
|
|
|
|
|
|
|
|
@reversion.register(ignore_duplicate_revisions=True) |
|
|
|
@reversion.register(ignore_duplicates=True) |
|
|
|
@python_2_unicode_compatible |
|
|
|
class Problem(SeminarModelBase): |
|
|
|
|
|
|
@ -542,7 +542,7 @@ class Problem(SeminarModelBase): |
|
|
|
return u"({}\u2009b)".format(pocet_bodu) if self.body else "" |
|
|
|
|
|
|
|
|
|
|
|
@reversion.register(ignore_duplicate_revisions=True) |
|
|
|
@reversion.register(ignore_duplicates=True) |
|
|
|
@python_2_unicode_compatible |
|
|
|
class Reseni(SeminarModelBase): |
|
|
|
|
|
|
@ -620,7 +620,7 @@ def generate_filename(self, filename): |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
@reversion.register(ignore_duplicate_revisions=True) |
|
|
|
@reversion.register(ignore_duplicates=True) |
|
|
|
@python_2_unicode_compatible |
|
|
|
class PrilohaReseni(SeminarModelBase): |
|
|
|
|
|
|
@ -691,7 +691,7 @@ class Pohadka(SeminarModelBase): |
|
|
|
return force_unicode(uryvek) |
|
|
|
|
|
|
|
|
|
|
|
@reversion.register(ignore_duplicate_revisions=True) |
|
|
|
@reversion.register(ignore_duplicates=True) |
|
|
|
class Prispevek(SeminarModelBase): |
|
|
|
problem = models.ForeignKey(Problem, verbose_name='Problém') # TODO autokompleet |
|
|
|
nazev = models.CharField('Název', max_length=200) |
|
|
@ -715,7 +715,7 @@ class Prispevek(SeminarModelBase): |
|
|
|
force_unicode(self.problem) + '>' |
|
|
|
|
|
|
|
|
|
|
|
@reversion.register(ignore_duplicate_revisions=True) |
|
|
|
@reversion.register(ignore_duplicates=True) |
|
|
|
@python_2_unicode_compatible |
|
|
|
class Organizator(models.Model): |
|
|
|
user = models.OneToOneField(settings.AUTH_USER_MODEL, verbose_name='Osoba', |
|
|
@ -760,7 +760,7 @@ class Organizator(models.Model): |
|
|
|
verbose_name_plural = 'Organizátoři' |
|
|
|
|
|
|
|
|
|
|
|
@reversion.register(ignore_duplicate_revisions=True) |
|
|
|
@reversion.register(ignore_duplicates=True) |
|
|
|
@python_2_unicode_compatible |
|
|
|
class Soustredeni(SeminarModelBase): |
|
|
|
|
|
|
@ -821,7 +821,7 @@ class Soustredeni(SeminarModelBase): |
|
|
|
return reverse('seminar_seznam_soustredeni') |
|
|
|
|
|
|
|
|
|
|
|
@reversion.register(ignore_duplicate_revisions=True) |
|
|
|
@reversion.register(ignore_duplicates=True) |
|
|
|
@python_2_unicode_compatible |
|
|
|
class Soustredeni_Ucastnici(models.Model): |
|
|
|
|
|
|
@ -845,7 +845,7 @@ class Soustredeni_Ucastnici(models.Model): |
|
|
|
return force_unicode(u'%s na %s' % (self.resitel, self.soustredeni, )) |
|
|
|
# NOTE: Poteciální DB HOG bez select_related |
|
|
|
|
|
|
|
@reversion.register(ignore_duplicate_revisions=True) |
|
|
|
@reversion.register(ignore_duplicates=True) |
|
|
|
@python_2_unicode_compatible |
|
|
|
class Soustredeni_Organizatori(models.Model): |
|
|
|
|
|
|
@ -871,7 +871,7 @@ class Soustredeni_Organizatori(models.Model): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@reversion.register(ignore_duplicate_revisions=True) |
|
|
|
@reversion.register(ignore_duplicates=True) |
|
|
|
@python_2_unicode_compatible |
|
|
|
class Konfera(models.Model): |
|
|
|
class Meta: |
|
|
@ -912,7 +912,7 @@ class Konfera(models.Model): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@reversion.register(ignore_duplicate_revisions=True) |
|
|
|
@reversion.register(ignore_duplicates=True) |
|
|
|
@python_2_unicode_compatible |
|
|
|
class Konfery_Ucastnici(models.Model): |
|
|
|
|
|
|
@ -1008,7 +1008,7 @@ class VysledkyCelkemKCislu(VysledkyBase): |
|
|
|
#mozna potreba upravit |
|
|
|
|
|
|
|
|
|
|
|
@reversion.register(ignore_duplicate_revisions=True) |
|
|
|
@reversion.register(ignore_duplicates=True) |
|
|
|
@python_2_unicode_compatible |
|
|
|
class Nastaveni(SingletonModel): |
|
|
|
|
|
|
@ -1030,7 +1030,7 @@ class Nastaveni(SingletonModel): |
|
|
|
return False |
|
|
|
|
|
|
|
|
|
|
|
@reversion.register(ignore_duplicate_revisions=True) |
|
|
|
@reversion.register(ignore_duplicates=True) |
|
|
|
@python_2_unicode_compatible |
|
|
|
class Novinky(models.Model): |
|
|
|
datum = models.DateField(auto_now_add=True) |
|
|
|