diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2013-04-30 15:27:34 +0000 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2013-04-30 15:27:34 +0000 |
| commit | fd1647a1b8b64ad5e9e340bc54ae69258948ee77 (patch) | |
| tree | 5f5652a1fb2027bbf4dd1dc26d6e28cbc04ea8fb /archaeological_operations/views.py | |
| parent | 94dfdaf3303f648de5ed228809d042f7329dc09e (diff) | |
| parent | f822d5efad930b26f8a4fe24bc802d44d1f22a15 (diff) | |
| download | Ishtar-fd1647a1b8b64ad5e9e340bc54ae69258948ee77.tar.bz2 Ishtar-fd1647a1b8b64ad5e9e340bc54ae69258948ee77.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.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]) |
