From 247ac765cb478ceefca96249641015bd10661d32 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 25 Aug 2016 13:40:59 +0200 Subject: PEP8 --- archaeological_finds/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'archaeological_finds/models.py') diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py index ea68fa807..70e0156fc 100644 --- a/archaeological_finds/models.py +++ b/archaeological_finds/models.py @@ -451,10 +451,10 @@ class Find(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem): def _get_treatments(self, model, rel='upstream'): treatments, findtreats = [], [] - for findtreat in model.objects.filter(find_id=self.pk - ).order_by('treatment_nb', 'treatment__start_date', - 'treatment__end_date' - ).distinct().all(): + for findtreat in model.objects.filter( + find_id=self.pk).order_by( + 'treatment_nb', 'treatment__start_date', + 'treatment__end_date').distinct().all(): if findtreat.pk in findtreats: continue findtreats.append(findtreat.pk) -- cgit v1.2.3