diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-08-25 13:40:59 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-08-25 13:40:59 +0200 |
commit | 8d09f4389c1a4e4659665699c324131597e61225 (patch) | |
tree | f147ecd680287f1d54cfe62cde93d892178e4888 | |
parent | 73df6f132a5ea00ec0b1dcfc77dc097f04961097 (diff) | |
download | Ishtar-8d09f4389c1a4e4659665699c324131597e61225.tar.bz2 Ishtar-8d09f4389c1a4e4659665699c324131597e61225.zip |
PEP8
-rw-r--r-- | archaeological_finds/models.py | 8 |
1 files changed, 4 insertions, 4 deletions
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) |