From 9d92f4e4478e0695c0fdc36c18d723a4f3290ad4 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 24 May 2019 11:46:29 +0200 Subject: DocumentItem: fix inapropriate heritage --- archaeological_warehouse/models.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'archaeological_warehouse') 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" -- cgit v1.2.3