From 7eba12011665ebb62c15a7b54c45237dc4f71e86 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 21 May 2019 20:04:27 +0200 Subject: Document generation: fix for treatment file without associated basket --- archaeological_finds/models_treatments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archaeological_finds') diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py index 5a7792083..e8d6256ef 100644 --- a/archaeological_finds/models_treatments.py +++ b/archaeological_finds/models_treatments.py @@ -1011,7 +1011,7 @@ class TreatmentFile(DashboardFormItem, ClosedItem, BaseHistorizedItem, def get_values(self, prefix=''): values = super(TreatmentFile, self).get_values(prefix=prefix) if not self.associated_basket: - return + return values values[prefix + "basket"] = [ find.get_values() for find in self.associated_basket.items.all() ] -- cgit v1.2.3