summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
commit247ac765cb478ceefca96249641015bd10661d32 (patch)
treef147ecd680287f1d54cfe62cde93d892178e4888
parent1e85d61867341ebf0393bd0b947a5c2204d7c2c1 (diff)
downloadIshtar-247ac765cb478ceefca96249641015bd10661d32.tar.bz2
Ishtar-247ac765cb478ceefca96249641015bd10661d32.zip
PEP8
-rw-r--r--archaeological_finds/models.py8
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)