diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-11-24 08:13:12 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:20:59 +0100 |
commit | fa4b00372209425b18c57fe9af29a416ce36b39f (patch) | |
tree | 2d5197ad3fb0ac78b343732d3251de320ea07f72 /archaeological_files/models.py | |
parent | e3ce9c77d36db4510076b677ec7ce1e0021a51f8 (diff) | |
download | Ishtar-fa4b00372209425b18c57fe9af29a416ce36b39f.tar.bz2 Ishtar-fa4b00372209425b18c57fe9af29a416ce36b39f.zip |
Syndication - api view & url for find, context record, warehouse, container and file
Diffstat (limited to 'archaeological_files/models.py')
-rw-r--r-- | archaeological_files/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py index 6ea53c731..cdc996d95 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -61,7 +61,7 @@ from ishtar_common.models import ( HierarchicalType, ) -from ishtar_common.models_common import HistoricalRecords, Department +from ishtar_common.models_common import HistoricalRecords, Department, MainItem from archaeological_operations.models import ( get_values_town_related, @@ -516,6 +516,7 @@ class File( } HISTORICAL_M2M = ["towns", "departments"] + SERIALIZE_PROPERTIES = ["external_id"] # fields year = models.IntegerField(_("Year"), default=get_current_year) |