Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Commit

Permalink
minor hygiene
Browse files Browse the repository at this point in the history
  • Loading branch information
alee committed Mar 19, 2015
1 parent 97e022d commit fa8b40f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vcweb/core/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class EmailAuthenticationBackend(ModelBackend):
adapted from http://djangosnippets.org/snippets/74/ and
http://scottbarnham.com/blog/2008/08/21/extending-the-django-user-model-with-inheritance/
FIXME: should we check for and handle Participant experiment auth codes separately from actual login?
FIXME: check for and handle Participant experiment auth codes separately from actual login
"""

def authenticate(self, username=None, password=None, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion vcweb/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2246,7 +2246,7 @@ def group_ids(self):
return self.group_relationship_set.select_related('group').values_list('group', flat=True)

def get_groups(self):
return Group.objects.filter(pk__in=self.groups)
return Group.objects.filter(pk__in=self.group_ids)

def add(self, group):
return GroupRelationship.objects.create(cluster=self, group=group)
Expand Down

0 comments on commit fa8b40f

Please sign in to comment.