diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-11 17:46:46 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-11 17:46:46 +0100 | 
| commit | 35897953208aa60ee306aba73963dda34a553cb0 (patch) | |
| tree | 5f60291fe22fc689f608ffc0ea8aeea9f7cd085f /archaeological_operations/models.py | |
| parent | f91bdbd644a266b69667cfbca5a3b23689990817 (diff) | |
| download | Ishtar-35897953208aa60ee306aba73963dda34a553cb0.tar.bz2 Ishtar-35897953208aa60ee306aba73963dda34a553cb0.zip  | |
Administrative act for treatment and treatment files
Diffstat (limited to 'archaeological_operations/models.py')
| -rw-r--r-- | archaeological_operations/models.py | 14 | 
1 files changed, 13 insertions, 1 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index c54a060cb..307d02e97 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -882,8 +882,10 @@ class OperationSource(Source):  class ActType(GeneralType):      TYPE = (('F', _(u'Archaeological file')),              ('O', _(u'Operation')), +            ('TF', _(u'Treatment file')), +            ('T', _(u'Treatment')),              ) -    intented_to = models.CharField(_(u"Intended to"), max_length=1, +    intented_to = models.CharField(_(u"Intended to"), max_length=2,                                     choices=TYPE)      code = models.CharField(_(u"Code"), max_length=10, blank=True, null=True)      associated_template = models.ManyToManyField( @@ -988,6 +990,16 @@ class AdministrativeAct(BaseHistorizedItem, OwnPerms, ValueGetter):          blank=True, null=True,          related_name='administrative_act',          verbose_name=_(u"Archaeological file")) +    treatment_file = models.ForeignKey( +        'archaeological_finds.TreatmentFile', +        blank=True, null=True, +        related_name='administrative_act', +        verbose_name=_(u"Treatment file")) +    treatment = models.ForeignKey( +        'archaeological_finds.Treatment', +        blank=True, null=True, +        related_name='administrative_act', +        verbose_name=_(u"Treatment"))      signature_date = models.DateField(_(u"Signature date"), blank=True,                                        null=True)      year = models.IntegerField(_(u"Year"), blank=True, null=True)  | 
