use {username} not {user} #1879

This commit is contained in:
j 2014-09-02 14:14:29 +02:00
parent bc3aa5364c
commit 183c550078

View file

@ -170,7 +170,7 @@ def signup(request):
if key == 'query':
for c in list.query['conditions']:
if c['key'] == 'user':
c['value'] = c['value'].format(user=user.username)
c['value'] = c['value'].format(username=user.username)
list.save()
pos = models.Position(list=list, section='personal', user=user)
qs = models.Position.objects.filter(user=user, section='personal')