diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-02-27 10:49:49 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-02-27 16:50:35 +0100 |
commit | 6920ba915b5b952c274c4cf45fbbbcd20da67966 (patch) | |
tree | a384742dc9bb271b841e95e080ab3cf9ffda8618 /archaeological_operations | |
parent | 729e62dc4706f70f14510ca89f2362ba600c5ad5 (diff) | |
download | Ishtar-6920ba915b5b952c274c4cf45fbbbcd20da67966.tar.bz2 Ishtar-6920ba915b5b952c274c4cf45fbbbcd20da67966.zip |
🐛 fix administrative act sheet crash (refs #5739)
Diffstat (limited to 'archaeological_operations')
-rw-r--r-- | archaeological_operations/models.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index cec9b0869..bcc845f8e 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -20,8 +20,6 @@ from collections import OrderedDict import datetime from itertools import groupby -import json -import re import uuid from django.apps import apps @@ -41,14 +39,12 @@ from ishtar_common.utils import ugettext_lazy as _, pgettext_lazy, get_generated from ishtar_common.models import ( Area, BaseHistorizedItem, - Dashboard, DashboardFormItem, Document, DocumentTemplate, GeneralRecordRelations, GeneralRelationType, GeneralType, - GeoVectorData, Imported, IshtarUser, LightHistorizedItem, @@ -60,7 +56,6 @@ from ishtar_common.models import ( post_delete_record_relation, post_save_cache, RelationItem, - ShortMenuItem, SourceType, Town, ValueGetter, @@ -86,6 +81,7 @@ from ishtar_common.utils import ( mode, m2m_historization_changed, post_save_geo, + SheetItem, ) @@ -2478,7 +2474,7 @@ post_save.connect(post_save_cache, sender=ActType) post_delete.connect(post_save_cache, sender=ActType) -class AdministrativeAct(DocumentItem, BaseHistorizedItem, OwnPerms, ValueGetter): +class AdministrativeAct(DocumentItem, BaseHistorizedItem, OwnPerms, ValueGetter, SheetItem): TABLE_COLS = [ "full_ref", "signature_date__year", |