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_operations/models.py | |
parent | 959471fcc4a1a8d39aab9202eb88816be14e90b2 (diff) | |
download | Ishtar-9937ed0dc9779d505633585a2fad2403b89c5b7f.tar.bz2 Ishtar-9937ed0dc9779d505633585a2fad2403b89c5b7f.zip |
Manage generation of QR codes
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index d79bce7f3..a09798f1f 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -39,7 +39,7 @@ from ishtar_common.models import BaseHistorizedItem, Dashboard, \ post_delete_record_relation, post_save_cache, RelationItem, \ ShortMenuItem, SourceType, Town, ValueGetter, get_current_profile, \ document_attached_changed, HistoryModel, SearchAltName, \ - GeoItem + GeoItem, QRCodeItem from ishtar_common.utils import cached_label_changed, \ force_cached_label_changed, mode, m2m_historization_changed, post_save_geo @@ -107,8 +107,8 @@ post_save.connect(post_save_cache, sender=RecordQualityType) post_delete.connect(post_save_cache, sender=RecordQualityType) -class ArchaeologicalSite(BaseHistorizedItem, GeoItem, OwnPerms, ValueGetter, - ShortMenuItem): +class ArchaeologicalSite(BaseHistorizedItem, QRCodeItem, GeoItem, OwnPerms, + ValueGetter, ShortMenuItem): SHOW_URL = 'show-site' TABLE_COLS = ['reference', 'name', 'towns_label', 'periods', 'remains'] SLUG = 'site' @@ -509,8 +509,8 @@ class OperationManager(models.GeoManager): return self.get(code_patriarche=txt_idx) -class Operation(ClosedItem, BaseHistorizedItem, GeoItem, OwnPerms, ValueGetter, - ShortMenuItem, DashboardFormItem, RelationItem): +class Operation(ClosedItem, BaseHistorizedItem, QRCodeItem, GeoItem, OwnPerms,\ + ValueGetter, ShortMenuItem, DashboardFormItem, RelationItem): SHOW_URL = 'show-operation' TABLE_COLS = ['year', 'towns_label', 'common_name', 'operation_type', 'start_date', 'excavation_end_date', 'remains'] |