Skip to content

Commit

Permalink
Fix cleaned_data game
Browse files Browse the repository at this point in the history
  • Loading branch information
kz26 committed Oct 5, 2016
1 parent d5d4c43 commit 5040abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uchicagohvz/game/admin.py
Expand Up @@ -30,7 +30,7 @@ def clean_game(self):
def clean_squad(self):
squad = self.cleaned_data.get('squad')
if squad:
player_game = self.cleaned_data['game']
player_game = self.cleaned_data.get('game')
if squad.game != player_game:
raise forms.ValidationError("Squad game (%s) does not match player game (%s)." % (squad.game.name, player_game.name))
return squad
Expand Down

0 comments on commit 5040abb

Please sign in to comment.