Skip to content

Commit

Permalink
BUG #44: establecido el valor por defecto de los gustos a 0 (no a None)
Browse files Browse the repository at this point in the history
  • Loading branch information
adlebzelaznog committed Apr 10, 2014
1 parent 8cfafd8 commit fa01c18
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions webapp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ def modification_account(request, username):
u = request.user
p = u.profile.get()

t = Tastes(salty=data['salty'],
sour=data['sour'],
bitter=data['bitter'],
sweet=data['sweet'],
spicy=data['spicy'])
t = Tastes(salty = data['salty'] if data['salty'] != None else 0,
sour = data['sour'] if data['sour'] != None else 0,
bitter = data['bitter'] if data['bitter'] != None else 0,
sweet = data['sweet'] if data['sweet'] != None else 0,
spicy = data['spicy'] if data['spicy'] != None else 0)

p.display_name = display_name
p.main_language = main_language
Expand Down

0 comments on commit fa01c18

Please sign in to comment.