diff options
Diffstat (limited to 'archaeological_finds/models_finds.py')
| -rw-r--r-- | archaeological_finds/models_finds.py | 6 | 
1 files changed, 3 insertions, 3 deletions
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  | 
