From a4f8ceb10cb00e6b2b0906c79eacb59162e4e7be Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 24 Feb 2021 13:17:23 +0100 Subject: Container templates: add a "material_types" and a "material_types_code" --- archaeological_finds/models_finds.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'archaeological_finds') diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index bab3dae9f..3924ee106 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -1841,6 +1841,10 @@ class Find(BulkUpdatedItem, ValueGetter, DocumentItem, BaseHistorizedItem, return return self.base_finds.order_by('-pk').all()[0] + DOC_VALUES = [ + ("base_finds.", _("List of associated base finds")), + ] + def get_values(self, prefix='', no_values=False, filtr=None, **kwargs): no_base_finds = False if "no_base_finds" in kwargs: -- cgit v1.2.3