From 0812b486b2bfbf93d3464af48aea2e12fa720c99 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 27 Feb 2024 10:49:49 +0100 Subject: 🐛 fix administrative act sheet crash (refs #5739) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_operations/models.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'archaeological_operations') 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", -- cgit v1.2.3