support lists..sort as key, fixes #1046
This commit is contained in:
parent
9d5328c64c
commit
3c77916231
2 changed files with 4 additions and 1 deletions
|
@ -172,6 +172,9 @@ class UserProfile(models.Model):
|
|||
|
||||
notes = models.TextField(default='')
|
||||
|
||||
def __unicode__(self):
|
||||
return self.user.username
|
||||
|
||||
def get_ui(self):
|
||||
return get_ui(self.ui, self.user)
|
||||
|
||||
|
|
|
@ -777,7 +777,7 @@ def setUI(request):
|
|||
else:
|
||||
ui = json.loads(request.session.get('ui', '{}'))
|
||||
for key in data:
|
||||
keys = re.sub('([^\\\\])\.', '\\1\n', key).split('\n')
|
||||
keys = map(lambda p: p.replace('\0', '\\.'), key.replace('\\.', '\0').split('.'))
|
||||
value = data[key]
|
||||
p = ui
|
||||
while len(keys)>1:
|
||||
|
|
Loading…
Reference in a new issue