From 8cd9c70288f5aaeae55a8b6900ea10ad89378066 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 23 Jan 2017 20:02:24 +0100 Subject: pep8 --- archaeological_finds/models_finds.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'archaeological_finds') diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 45c750f66..e8b6135a8 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -551,9 +551,9 @@ class Find(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem): def _get_treatments(self, model, rel='upstream', limit=None): treatments, findtreats = [], [] q = model.objects.filter( - find_id=self.pk).order_by( - 'treatment_nb', 'treatment__start_date', - 'treatment__end_date') + find_id=self.pk).order_by( + 'treatment_nb', 'treatment__start_date', + 'treatment__end_date') for findtreat in q.distinct().all(): if findtreat.pk in findtreats: continue -- cgit v1.2.3