sort by number of annotations

This commit is contained in:
j 2012-02-20 17:42:13 +00:00
commit a123d4daf7
3 changed files with 9 additions and 1 deletions

View file

@ -49,7 +49,7 @@ def addEvent(request):
event.set_name_sort(data['nameSort'])
event.matches = 0
event.save()
event.update_matches.()
event.update_matches()
response = json_response(status=200, text='created')
response['data'] = event.json()
else: