|
|
@ -1720,83 +1720,6 @@ class ReseniNode(TreeNode): |
|
|
|
def getOdkazStr(self): |
|
|
|
return str(self.reseni) |
|
|
|
|
|
|
|
## FIXME: Logiku přesunout do views. |
|
|
|
#class VysledkyBase(SeminarModelBase): |
|
|
|
# |
|
|
|
# class Meta: |
|
|
|
# verbose_name = 'Řádek výsledkovky' |
|
|
|
# verbose_name_plural = 'Řádky výsledkovky' |
|
|
|
# ordering = ['body'] |
|
|
|
# abstract = True |
|
|
|
# managed = False |
|
|
|
# |
|
|
|
# dummy_id = models.CharField('dummy ID pro view', max_length=32, primary_key=True, |
|
|
|
# db_column='id') |
|
|
|
# |
|
|
|
# cislo = models.ForeignKey(Cislo, verbose_name='číslo pro body', db_column='cislo_id', |
|
|
|
# on_delete=models.DO_NOTHING) |
|
|
|
# |
|
|
|
# resitel = models.ForeignKey(Resitel, verbose_name='řešitel', db_column='resitel_id', |
|
|
|
# on_delete=models.DO_NOTHING) |
|
|
|
# |
|
|
|
# body = models.DecimalField(max_digits=8, decimal_places=1, db_column='body', |
|
|
|
# verbose_name='body za číslo') |
|
|
|
# |
|
|
|
# def __str__(self): |
|
|
|
# return "%s: %sb (%s)".format(self.resitel.plne_jmeno(), self.body, |
|
|
|
# str(self.poradi)) |
|
|
|
# # NOTE: DB zatez pri vypisu (ale nepouzivany) |
|
|
|
|
|
|
|
|
|
|
|
## FIXME: Logiku přesunout do views. |
|
|
|
#class VysledkyZaCislo(VysledkyBase): |
|
|
|
# |
|
|
|
# class Meta: |
|
|
|
# db_table = 'seminar_body_za_cislo' |
|
|
|
# abstract = False |
|
|
|
# managed = False |
|
|
|
# |
|
|
|
# |
|
|
|
## FIXME: Logiku přesunout do views. |
|
|
|
#class VysledkyKCisluZaRocnik(VysledkyBase): |
|
|
|
# |
|
|
|
# class Meta: |
|
|
|
# db_table = 'seminar_body_k_cislu_rocnik' |
|
|
|
# abstract = False |
|
|
|
# managed = False |
|
|
|
# |
|
|
|
## body = models.DecimalField(max_digits=8, decimal_places=1, db_column='body', |
|
|
|
## verbose_name='body do čísla (za ročník)') |
|
|
|
# |
|
|
|
# |
|
|
|
## FIXME: Logiku přesunout do views. |
|
|
|
#class VysledkyKCisluOdjakziva(VysledkyBase): |
|
|
|
# |
|
|
|
# class Meta: |
|
|
|
# db_table = 'seminar_body_k_cislu_odjakziva' |
|
|
|
# abstract = False |
|
|
|
# managed = False |
|
|
|
# |
|
|
|
## body = models.DecimalField(max_digits=8, decimal_places=1, db_column='body', |
|
|
|
## verbose_name='body do čísla (i minulé ročníky)') |
|
|
|
# |
|
|
|
# |
|
|
|
## FIXME: Logiku přesunout do views. |
|
|
|
#class VysledkyCelkemKCislu(VysledkyBase): |
|
|
|
# |
|
|
|
# class Meta: |
|
|
|
# db_table = 'seminar_body_celkem_k_cislu' |
|
|
|
# abstract = False |
|
|
|
# managed = False |
|
|
|
# |
|
|
|
# body_celkem = models.DecimalField(max_digits=8, decimal_places=1, db_column='body_celkem', |
|
|
|
# verbose_name='body celkem do čísla včetně minulých ročníků') |
|
|
|
# |
|
|
|
# def __str__(self): |
|
|
|
# # NOTE: DB HOG (ale nepouzivany) |
|
|
|
# return "%s: %sb / %sb (do %s)" % (self.resitel.plne_jmeno(), self.body, self.body_celkem, str(self.poradi)) |
|
|
|
##mozna potreba upravit |
|
|
|
|
|
|
|
|
|
|
|
@reversion.register(ignore_duplicates=True) |
|
|
|
class Nastaveni(SingletonModel): |
|
|
|