Skip to content

Commit

Permalink
Function to get all unjoined groups for the user
Browse files Browse the repository at this point in the history
  • Loading branch information
yashwanthbabu committed Sep 9, 2014
1 parent 67c673c commit b792552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tavern/models.py
Expand Up @@ -137,4 +137,4 @@ def __unicode__(self):
def get_unjoined_groups(username):
user = get_object_or_404(User, username=username)
user_unjoined_groups = TavernGroup.objects.exclude(members=user)
return user_unjoined_groups
return user_unjoined_groups

0 comments on commit b792552

Please sign in to comment.