use from/toAZ
This commit is contained in:
parent
e13f67624d
commit
cea86aee43
17 changed files with 28 additions and 28 deletions
|
|
@ -76,7 +76,7 @@ class Person(models.Model):
|
|||
get_or_create = classmethod(get_or_create)
|
||||
|
||||
def get_id(self):
|
||||
return ox.to26(self.id)
|
||||
return ox.toAZ(self.id)
|
||||
|
||||
def json(self, keys=None, user=None):
|
||||
j = {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ def editName(request):
|
|||
can contain any of the allowed keys for name
|
||||
'''
|
||||
data = json.loads(request.POST['data'])
|
||||
person = get_object_or_404_json(models.Person, pk=ox.from26(data['id']))
|
||||
person = get_object_or_404_json(models.Person, pk=ox.fromAZ(data['id']))
|
||||
response = json_response()
|
||||
if 'sortname' in data:
|
||||
person.sortname = data['sortname']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue