diff options
| author | Valérie-Emma Leroux <valerie-emma.leroux@iggdrasil.net> | 2018-02-23 13:34:37 +0100 |
|---|---|---|
| committer | Valérie-Emma Leroux <valerie-emma.leroux@iggdrasil.net> | 2018-02-23 13:34:37 +0100 |
| commit | de922ec1e6b55215fc73c8fe547b0adb1244d6b6 (patch) | |
| tree | 02c967dd44334bbd66f9b70ce390cab734a3e3ef /archaeological_finds/models_finds.py | |
| parent | 9b98e6d7c65ba94bcc70872e4f969472cae31fd6 (diff) | |
| download | Ishtar-de922ec1e6b55215fc73c8fe547b0adb1244d6b6.tar.bz2 Ishtar-de922ec1e6b55215fc73c8fe547b0adb1244d6b6.zip | |
Update labels + add col for find search
Diffstat (limited to 'archaeological_finds/models_finds.py')
| -rw-r--r-- | archaeological_finds/models_finds.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 7d9b4bd8a..382b793ef 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -207,7 +207,7 @@ class BFBulkView(object): class BaseFind(BulkUpdatedItem, BaseHistorizedItem, OwnPerms): EXTERNAL_ID_KEY = 'base_find_external_id' EXTERNAL_ID_DEPENDENCIES = ['find'] - label = models.TextField(_(u"Free ID")) + label = models.TextField(_(u"Label")) external_id = models.TextField(_(u"External ID"), blank=True, null=True) auto_external_id = models.BooleanField( _(u"External ID is set automatically"), default=False) @@ -556,7 +556,7 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel, CHECK_DICT = dict(CHECK_CHOICES) SHOW_URL = 'show-find' SLUG = 'find' - TABLE_COLS = ['label', 'base_finds__context_record__parcel__town__name', + TABLE_COLS = ['external_id', 'label', 'base_finds__context_record__parcel__town__name', 'base_finds__context_record__operation__common_name', 'base_finds__context_record__parcel', 'base_finds__context_record__label', @@ -678,7 +678,7 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel, auto_external_id = models.BooleanField( _(u"External ID is set automatically"), default=False) order = models.IntegerField(_(u"Order"), default=1) - label = models.TextField(_(u"Free ID")) + label = models.TextField(_(u"Label")) description = models.TextField(_(u"Description"), blank=True, null=True) material_types = models.ManyToManyField( MaterialType, verbose_name=_(u"Material types"), related_name='finds', |
