summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/models.py
diff options
context:
space:
mode:
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
commit9d92f4e4478e0695c0fdc36c18d723a4f3290ad4 (patch)
tree849f14dfe2e62ec696ce2530207ddcbb7229929f /archaeological_warehouse/models.py
parent8c0edb9a85e947f0dac65c630ba1c2fa185e880a (diff)
downloadIshtar-9d92f4e4478e0695c0fdc36c18d723a4f3290ad4.tar.bz2
Ishtar-9d92f4e4478e0695c0fdc36c18d723a4f3290ad4.zip
DocumentItem: fix inapropriate heritage
Diffstat (limited to 'archaeological_warehouse/models.py')
-rw-r--r--archaeological_warehouse/models.py9
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"