diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-10-06 19:44:11 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:21 +0100 |
commit | 9f8e22e404f30b0c26933ebc85efdb416cc7bca4 (patch) | |
tree | 04961ac0119f44f5c46cb4356733f8bf2b5b0c1d /archaeological_files/models.py | |
parent | 8b11f10de8259e2c0108434b15f97a968f5ccd93 (diff) | |
download | Ishtar-9f8e22e404f30b0c26933ebc85efdb416cc7bca4.tar.bz2 Ishtar-9f8e22e404f30b0c26933ebc85efdb416cc7bca4.zip |
Complete identifier field: database - profile settings - save
Diffstat (limited to 'archaeological_files/models.py')
-rw-r--r-- | archaeological_files/models.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py index 8afd57d01..455d65af8 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -34,8 +34,8 @@ from ishtar_common.utils import cached_label_changed, get_cache, \ from ishtar_common.models import GeneralType, BaseHistorizedItem, \ OwnPerms, Person, Organization, Town, \ Dashboard, DashboardFormItem, ValueGetter, ShortMenuItem, \ - OperationType, get_external_id, post_save_cache, Document, HistoryModel, \ - SearchAltName, SearchVectorConfig, DocumentItem + OperationType, get_generated_id, post_save_cache, Document, HistoryModel, \ + SearchAltName, SearchVectorConfig, DocumentItem, CompleteIdentifierItem from ishtar_common.models_common import HistoricalRecords, Department @@ -86,8 +86,8 @@ if settings.COUNTRY == 'fr': post_delete.connect(post_save_cache, sender=SaisineType) -class File(ClosedItem, DocumentItem, BaseHistorizedItem, OwnPerms, ValueGetter, - ShortMenuItem, DashboardFormItem, ParcelItem): +class File(ClosedItem, DocumentItem, BaseHistorizedItem, CompleteIdentifierItem, + OwnPerms, ValueGetter, ShortMenuItem, DashboardFormItem, ParcelItem): SLUG = 'file' SHOW_URL = 'show-file' DELETE_URL = 'delete-file' @@ -716,7 +716,7 @@ class File(ClosedItem, DocumentItem, BaseHistorizedItem, OwnPerms, ValueGetter, updated += self.update_corpo_general_contractor() if not self.external_id or self.auto_external_id: - external_id = get_external_id('file_external_id', self) + external_id = get_generated_id('file_external_id', self) if external_id != self.external_id: updated = True self.auto_external_id = True |