diff options
Diffstat (limited to 'archaeological_operations/views.py')
-rw-r--r-- | archaeological_operations/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py index 5e6385de7..182ae115e 100644 --- a/archaeological_operations/views.py +++ b/archaeological_operations/views.py @@ -49,7 +49,8 @@ def autocomplete_patriarche(request, non_closed=True): if non_closed: query = query & Q(end_date__isnull=True) limit = 15 - operations = models.Operation.objects.filter(query).order_by('code_patriarche')[:limit] + operations = models.Operation.objects.filter(query + ).order_by('code_patriarche')[:limit] data = json.dumps([{'id':operation.code_patriarche, 'value':operation.code_patriarche} for operation in operations]) |