diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-05-24 11:46:29 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-05-24 11:46:50 +0200 |
commit | b70ce24512fe2c4c8baa379f1204017c177a3230 (patch) | |
tree | 849f14dfe2e62ec696ce2530207ddcbb7229929f /archaeological_warehouse | |
parent | 880075af959c2989724599258036529c0627fb2f (diff) | |
download | Ishtar-b70ce24512fe2c4c8baa379f1204017c177a3230.tar.bz2 Ishtar-b70ce24512fe2c4c8baa379f1204017c177a3230.zip |
DocumentItem: fix inapropriate heritage
Diffstat (limited to 'archaeological_warehouse')
-rw-r--r-- | archaeological_warehouse/models.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index 10cf89943..9783682a9 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -33,7 +33,7 @@ from ishtar_common.models import Document, GeneralType, get_external_id, \ LightHistorizedItem, OwnPerms, Address, Person, post_save_cache, \ DashboardFormItem, ShortMenuItem, \ document_attached_changed, SearchAltName, DynamicRequest, GeoItem, \ - QRCodeItem, SearchVectorConfig + QRCodeItem, SearchVectorConfig, DocumentItem from ishtar_common.utils import cached_label_changed, post_save_geo @@ -48,8 +48,8 @@ post_save.connect(post_save_cache, sender=WarehouseType) post_delete.connect(post_save_cache, sender=WarehouseType) -class Warehouse(Address, GeoItem, QRCodeItem, DashboardFormItem, OwnPerms, - ShortMenuItem): +class Warehouse(Address, DocumentItem, GeoItem, QRCodeItem, DashboardFormItem, + OwnPerms, ShortMenuItem): SLUG = 'warehouse' APP = "archaeological-warehouse" MODEL = "warehouse" @@ -331,7 +331,8 @@ post_save.connect(post_save_cache, sender=ContainerType) post_delete.connect(post_save_cache, sender=ContainerType) -class Container(LightHistorizedItem, QRCodeItem, GeoItem, OwnPerms): +class Container(DocumentItem, LightHistorizedItem, QRCodeItem, GeoItem, + OwnPerms): SLUG = 'container' APP = "archaeological-warehouse" MODEL = "container" |