summaryrefslogtreecommitdiff
path: root/archaeological_operations/views.py
diff options
context:
space:
mode:
authorroot <root@viserion.(none)>2013-04-30 15:27:34 +0000
committerroot <root@viserion.(none)>2013-04-30 15:27:34 +0000
commit03f21b1abbae8962c81f46c01f1bb972fc7b2395 (patch)
tree5f5652a1fb2027bbf4dd1dc26d6e28cbc04ea8fb /archaeological_operations/views.py
parent16e1f93de47184e52765f950e39cb04f6ed93dd8 (diff)
parenteadca6ca09b823da4596b7b904420e6314383b50 (diff)
downloadIshtar-03f21b1abbae8962c81f46c01f1bb972fc7b2395.tar.bz2
Ishtar-03f21b1abbae8962c81f46c01f1bb972fc7b2395.zip
Merge branch 'master' of lysithea.proxience.net:/home/proxience/git/ishtar
Diffstat (limited to 'archaeological_operations/views.py')
-rw-r--r--archaeological_operations/views.py2
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])