diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-02-25 18:07:15 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-04-24 19:38:57 +0200 |
commit | 9937ed0dc9779d505633585a2fad2403b89c5b7f (patch) | |
tree | 068c7b4348f5fe28d4ab4ec50bbc1c3dbbf89271 /archaeological_warehouse/models.py | |
parent | 959471fcc4a1a8d39aab9202eb88816be14e90b2 (diff) | |
download | Ishtar-9937ed0dc9779d505633585a2fad2403b89c5b7f.tar.bz2 Ishtar-9937ed0dc9779d505633585a2fad2403b89c5b7f.zip |
Manage generation of QR codes
Diffstat (limited to 'archaeological_warehouse/models.py')
-rw-r--r-- | archaeological_warehouse/models.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index 795c879e4..115f0d7ea 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -31,7 +31,8 @@ from ishtar_common.data_importer import post_importer_action from ishtar_common.models import Document, GeneralType, get_external_id, \ LightHistorizedItem, OwnPerms, Address, Person, post_save_cache, \ DashboardFormItem, ExternalIdManager, ShortMenuItem, \ - document_attached_changed, SearchAltName, DynamicRequest, GeoItem + document_attached_changed, SearchAltName, DynamicRequest, GeoItem, \ + QRCodeItem from ishtar_common.utils import cached_label_changed, post_save_geo @@ -46,7 +47,7 @@ post_save.connect(post_save_cache, sender=WarehouseType) post_delete.connect(post_save_cache, sender=WarehouseType) -class Warehouse(Address, GeoItem, DashboardFormItem, OwnPerms, +class Warehouse(Address, GeoItem, QRCodeItem, DashboardFormItem, OwnPerms, ShortMenuItem): SLUG = 'warehouse' SHOW_URL = 'show-warehouse' @@ -322,7 +323,7 @@ post_save.connect(post_save_cache, sender=ContainerType) post_delete.connect(post_save_cache, sender=ContainerType) -class Container(LightHistorizedItem, GeoItem, OwnPerms): +class Container(LightHistorizedItem, QRCodeItem, GeoItem, OwnPerms): SLUG = 'container' SHOW_URL = 'show-container' TABLE_COLS = ['reference', 'container_type__label', 'cached_location', |