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 | 6e0edd25093296d3f3c2c7ff5291e8e5174fa595 (patch) | |
tree | fe05738ee40da7e2c072ca66e213500630e93a51 /archaeological_finds/models_treatments.py | |
parent | c8dbb8c20a56b5e43e7223afe041e993929a949f (diff) | |
download | Ishtar-6e0edd25093296d3f3c2c7ff5291e8e5174fa595.tar.bz2 Ishtar-6e0edd25093296d3f3c2c7ff5291e8e5174fa595.zip |
Fix delete wizard with no "class_verbose_name"
Diffstat (limited to 'archaeological_finds/models_treatments.py')
-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) |