diff options
Diffstat (limited to 'archaeological_warehouse/models.py')
| -rw-r--r-- | archaeological_warehouse/models.py | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index 1aad71111..68f5181b7 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -261,7 +261,7 @@ post_delete.connect(post_save_cache, sender=ContainerType)  class Container(LightHistorizedItem, ImageModel):      TABLE_COLS = ['reference', 'container_type__label', 'cached_location', -                  'divisions_lbl'] +                  'divisions_lbl', 'old_reference']      IMAGE_PREFIX = 'containers/'      BASE_SEARCH_VECTORS = ['reference', 'container_type__label',                             'cached_location'] @@ -273,6 +273,7 @@ class Container(LightHistorizedItem, ImageModel):          'location': 'location__pk',          'container_type': 'container_type__pk',          'reference': 'reference__icontains', +        'old_reference': 'old_reference__icontains',          'finds__base_finds__context_record__operation':              'finds__base_finds__context_record__operation',          'finds__base_finds__context_record': @@ -296,13 +297,15 @@ class Container(LightHistorizedItem, ImageModel):          related_name='owned_containers')      container_type = models.ForeignKey(ContainerType,                                         verbose_name=_("Container type")) -    reference = models.CharField(_(u"Container ref."), max_length=40) +    reference = models.CharField(_(u"Container ref."), max_length=200)      comment = models.TextField(_(u"Comment"), null=True, blank=True)      cached_label = models.CharField(_(u"Localisation"), max_length=500,                                      null=True, blank=True, db_index=True)      cached_location = models.CharField(_(u"Cached location"), max_length=500,                                         null=True, blank=True, db_index=True)      index = models.IntegerField(u"Container ID", default=0) +    old_reference = models.CharField(_(u"Old reference"), max_length=200, +                                     blank=True, null=True)      external_id = models.TextField(_(u"External ID"), blank=True, null=True)      auto_external_id = models.BooleanField(          _(u"External ID is set automatically"), default=False) | 
