summaryrefslogtreecommitdiff
path: root/archaeological_finds
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_finds
parent8c0edb9a85e947f0dac65c630ba1c2fa185e880a (diff)
downloadIshtar-9d92f4e4478e0695c0fdc36c18d723a4f3290ad4.tar.bz2
Ishtar-9d92f4e4478e0695c0fdc36c18d723a4f3290ad4.zip
DocumentItem: fix inapropriate heritage
Diffstat (limited to 'archaeological_finds')
-rw-r--r--archaeological_finds/models_finds.py6
-rw-r--r--archaeological_finds/models_treatments.py10
2 files changed, 8 insertions, 8 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index 5bffe9851..ad8beb623 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -42,7 +42,7 @@ from ishtar_common.models import Document, GeneralType, \
ValueGetter, get_current_profile, IshtarSiteProfile, PRIVATE_FIELDS, \
GeoItem, BulkUpdatedItem, QuickAction, \
MainItem, document_attached_changed, HistoryModel, DynamicRequest, \
- SearchAltName, QRCodeItem, SearchVectorConfig
+ SearchAltName, QRCodeItem, SearchVectorConfig, DocumentItem
from archaeological_operations.models import AdministrativeAct, Operation
@@ -734,8 +734,8 @@ def query_loan(is_true=True):
container_ref=F('container')), None, None
-class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, QRCodeItem,
- OwnPerms, MainItem):
+class Find(BulkUpdatedItem, ValueGetter, DocumentItem, BaseHistorizedItem,
+ QRCodeItem, OwnPerms, MainItem):
SLUG = 'find'
APP = "archaeological-finds"
MODEL = "find"
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py
index c35d3710c..512fd8a05 100644
--- a/archaeological_finds/models_treatments.py
+++ b/archaeological_finds/models_treatments.py
@@ -38,7 +38,7 @@ from ishtar_common.models import Document, GeneralType, \
ImageModel, BaseHistorizedItem, OwnPerms, HistoricalRecords, Person, \
Organization, ValueGetter, post_save_cache, ShortMenuItem, \
DashboardFormItem, document_attached_changed, \
- HistoryModel, SearchAltName, SearchVectorConfig
+ HistoryModel, SearchAltName, SearchVectorConfig, DocumentItem
from ishtar_common.utils import cached_label_changed, get_current_year, \
update_data, m2m_historization_changed
@@ -64,8 +64,8 @@ post_save.connect(post_save_cache, sender=TreatmentState)
post_delete.connect(post_save_cache, sender=TreatmentState)
-class Treatment(DashboardFormItem, ValueGetter, BaseHistorizedItem,
- ImageModel, OwnPerms, ShortMenuItem):
+class Treatment(DashboardFormItem, ValueGetter, DocumentItem,
+ BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem):
SLUG = 'treatment'
SHOW_URL = 'show-treatment'
TABLE_COLS = ('year', 'index', 'treatment_types__label',
@@ -872,8 +872,8 @@ post_save.connect(post_save_cache, sender=TreatmentFileType)
post_delete.connect(post_save_cache, sender=TreatmentFileType)
-class TreatmentFile(DashboardFormItem, ClosedItem, BaseHistorizedItem,
- OwnPerms, ValueGetter, ShortMenuItem):
+class TreatmentFile(DashboardFormItem, ClosedItem, DocumentItem,
+ BaseHistorizedItem, OwnPerms, ValueGetter, ShortMenuItem):
SLUG = 'treatmentfile'
SHOW_URL = 'show-treatmentfile'
TABLE_COLS = ['type', 'year', 'index', 'internal_reference', 'name']