diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-10-03 13:46:12 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-10-03 13:46:12 +0200 |
commit | b18ac9ad4a8d43ebb23203eab501069408dc689c (patch) | |
tree | fe05738ee40da7e2c072ca66e213500630e93a51 /archaeological_finds | |
parent | e721ba57b935d6b1b0b365ab88b22044ca098054 (diff) | |
download | Ishtar-b18ac9ad4a8d43ebb23203eab501069408dc689c.tar.bz2 Ishtar-b18ac9ad4a8d43ebb23203eab501069408dc689c.zip |
Fix delete wizard with no "class_verbose_name"
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/models_treatments.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py index 28e6618d6..5d4597b19 100644 --- a/archaeological_finds/models_treatments.py +++ b/archaeological_finds/models_treatments.py @@ -1182,6 +1182,10 @@ class TreatmentFile( return _("Treatment request") @classmethod + def class_verbose_name(cls): # TODO: should be unecessary if MainItem + return cls._meta.verbose_name + + @classmethod def get_query_owns(cls, ishtaruser): return ( Q(history_creator=ishtaruser.user_ptr) | Q(in_charge__ishtaruser=ishtaruser) |