From fe39cb336acbb04da6934dd4d5dfe4f4f2d66754 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(-) 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