diff options
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r-- | archaeological_context_records/models.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 59716be8b..a94421ada 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -100,12 +100,18 @@ class ContextRecord(BaseHistorizedItem, OwnPerms, ShortMenuItem): 'label', 'unit'] if settings.COUNTRY == 'fr': TABLE_COLS.insert(1, 'operation.code_patriarche') + external_id = models.CharField(_(u"External ID"), blank=True, null=True, + max_length=120) parcel = models.ForeignKey(Parcel, verbose_name=_(u"Parcel"), related_name='context_record') operation = models.ForeignKey(Operation, verbose_name=_(u"Operation"), related_name='context_record') label = models.CharField(_(u"ID"), max_length=200) description = models.TextField(_(u"Description"), blank=True, null=True) + comment = models.TextField(_(u"Comment"), blank=True, null=True) + opening_date = models.DateField(_(u"Date d'ouverture"), + blank=True, null=True) + closing_date = models.DateField(_(u"End date"), blank=True, null=True) length = models.IntegerField(_(u"Length (cm)"), blank=True, null=True) width = models.IntegerField(_(u"Width (cm)"), blank=True, null=True) thickness = models.IntegerField(_(u"Thickness (cm)"), blank=True, null=True) @@ -116,7 +122,7 @@ class ContextRecord(BaseHistorizedItem, OwnPerms, ShortMenuItem): datings = models.ManyToManyField(Dating) unit = models.ForeignKey(Unit, verbose_name=_(u"Unit"), related_name='+', blank=True, null=True) - has_furniture = models.NullBooleanField(u"Has furniture?", blank=True, + has_furniture = models.NullBooleanField(_(u"Has furniture?"), blank=True, null=True) filling = models.TextField(_(u"Filling"), blank=True, null=True) interpretation = models.TextField(_(u"Interpretation"), blank=True, |