remove the person variable

This commit is contained in:
Andreas Zweili 2018-02-26 22:32:21 +01:00
parent 9b0fc0ba06
commit 3073baf43f
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ def registration(request):
user.last_name = pf['last_name']
user.first_name = pf['first_name']
user.save()
person = Person.objects.create(
Person.objects.create(
salutation=pf['salutation'],
city=City.objects.get(zip_code=pf['zip_code'],
name=pf['city']),