cleaner submit routine for find

This commit is contained in:
rolux 2011-01-16 01:06:37 +00:00
commit 663eac45cf
3 changed files with 32 additions and 49 deletions

View file

@ -61,9 +61,11 @@ class UserProfile(models.Model):
pos.position = qs.aggregate(Max('position'))['position__max'] + 1
pos.save()
id = l.get_id()
'''
if id not in ui['lists']:
ui['lists'][id] = {}
ui['lists'][id].update(ui['lists'][''])
'''
ids.append(id)
return ids