|
@ -53,6 +53,17 @@ class KorekturovanePDF(models.Model): |
|
|
pdf = models.FileField(u'pdf', upload_to = generate_filename) |
|
|
pdf = models.FileField(u'pdf', upload_to = generate_filename) |
|
|
|
|
|
|
|
|
stran = models.IntegerField(u'počet stran', help_text = 'Počet stran PDF', default = 0) |
|
|
stran = models.IntegerField(u'počet stran', help_text = 'Počet stran PDF', default = 0) |
|
|
|
|
|
STATUS_PRIDAVANI = 'pridavani' |
|
|
|
|
|
STATUS_ZANASENI = 'zanaseni' |
|
|
|
|
|
STATUS_ZASTARALE = 'zastarale' |
|
|
|
|
|
STATUS_CHOICES = ( |
|
|
|
|
|
(STATUS_PRIDAVANI, u'Přidávání korektur'), |
|
|
|
|
|
(STATUS_ZANASENI, u'Korektury jsou zanášeny'), |
|
|
|
|
|
(STATUS_ZASTARALE, u'Stará verze, nekorigovat'), |
|
|
|
|
|
) |
|
|
|
|
|
status = models.CharField(u'stav PDF',max_length=16, choices=STATUS_CHOICES, blank=False, |
|
|
|
|
|
default = STATUS_PRIDAVANI) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#TODO Nepovinný foreign key k číslu |
|
|
#TODO Nepovinný foreign key k číslu |
|
|
|
|
|
|
|
@ -101,10 +112,14 @@ class Oprava(models.Model): |
|
|
|
|
|
|
|
|
STATUS_K_OPRAVE = 'k_oprave' |
|
|
STATUS_K_OPRAVE = 'k_oprave' |
|
|
STATUS_OPRAVENO = 'opraveno' |
|
|
STATUS_OPRAVENO = 'opraveno' |
|
|
|
|
|
STATUS_NENI_CHYBA = 'neni_chyba' |
|
|
|
|
|
STATUS_K_REAKCI = 'k_reakci' |
|
|
STATUS_SMAZANO = 'smazano' |
|
|
STATUS_SMAZANO = 'smazano' |
|
|
STATUS_CHOICES = ( |
|
|
STATUS_CHOICES = ( |
|
|
(STATUS_K_OPRAVE, u'K opravě'), |
|
|
(STATUS_K_OPRAVE, u'K opravě'), |
|
|
(STATUS_OPRAVENO, u'Opraveno'), |
|
|
(STATUS_OPRAVENO, u'Opraveno'), |
|
|
|
|
|
(STATUS_NENI_CHYBA, u'Není chyba'), |
|
|
|
|
|
(STATUS_K_REAKCI, u'K reakci autora textu'), |
|
|
(STATUS_SMAZANO, u'Smazáno'), |
|
|
(STATUS_SMAZANO, u'Smazáno'), |
|
|
) |
|
|
) |
|
|
status = models.CharField(u'stav opravy',max_length=16, choices=STATUS_CHOICES, blank=False, |
|
|
status = models.CharField(u'stav opravy',max_length=16, choices=STATUS_CHOICES, blank=False, |
|
|