Compare commits

..

No commits in common. "1a3edf4f93e14a01fc6f77452e8f6b48ccd7e86f" and "03d5c677aacf8f2aa8ff21c84f60532a462b16d8" have entirely different histories.

2 changed files with 5 additions and 3 deletions

View file

@ -174,7 +174,7 @@ class Entity(models.Model):
response[key] = self.name_sort
elif key == 'documents':
response[key] = [ox.toAZ(id_)
for id_, in self.documentproperties.order_by('document__name_sort').values_list('document_id')]
for id_, in self.documentproperties.order_by('index').values_list('document_id')]
elif key in self.data:
response[key] = self.data[key]
return response

View file

@ -2,8 +2,10 @@
# vi:si:et:sw=4:sts=4:ts=4
from __future__ import absolute_import
from functools import wraps
try:
from django.contrib.auth.decorators import wraps
except:
from django.utils.functional import wraps
from .shortcuts import render_to_json_response
def login_required_json(function=None):