diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-01-25 21:40:46 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-01-25 21:40:46 +0100 | 
| commit | d0c12c279f1283a37729f33bf1d453d725623167 (patch) | |
| tree | d9b092aa484b251ef3895658083915b7a62756b1 /archaeological_context_records/models.py | |
| parent | fc12472bff31f4aa50428113cdde48efb5c7b24d (diff) | |
| download | Ishtar-d0c12c279f1283a37729f33bf1d453d725623167.tar.bz2 Ishtar-d0c12c279f1283a37729f33bf1d453d725623167.zip  | |
Several changes on models to manage complex find imports
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,  | 
