diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-30 16:26:37 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-30 16:26:37 +0200 |
commit | 55fda6c9bd1cd304137e38e195e641f6b29116ce (patch) | |
tree | b5e0d804e5ab2f57b6ae71d4553e6c3e16d8cff2 /archaeological_operations/views.py | |
parent | dcae60f13e35d2b0298d8e184e32c0c6353bb520 (diff) | |
download | Ishtar-55fda6c9bd1cd304137e38e195e641f6b29116ce.tar.bz2 Ishtar-55fda6c9bd1cd304137e38e195e641f6b29116ce.zip |
Add extra fields to Operation (fr specific) - many display improvment
Diffstat (limited to 'archaeological_operations/views.py')
-rw-r--r-- | archaeological_operations/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py index e5bf16ce8..c2e0b135c 100644 --- a/archaeological_operations/views.py +++ b/archaeological_operations/views.py @@ -48,7 +48,7 @@ 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)[: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]) |