Skip to content

Commit

Permalink
Fixed null to none
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsikora committed Apr 15, 2012
1 parent cde0e63 commit b6ad94c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions events/models.py
Expand Up @@ -132,9 +132,9 @@ def get_relevant_players(self):
users = []
users.extend(playerOne.userprofile_set.all())
users.extend(playerTwo.userprofile_set.all())
if teamOne is not Null:
if teamOne is not None:
users.extend(teamOne.userprofile_set.all())
if teamTwo is not Null:
if teamTwo is not None:
users.extend(teamTwo.userprofile_set.all())
users.extend(event.userprofile_set.all())
users = set(users)
Expand Down

0 comments on commit b6ad94c

Please sign in to comment.