Skip to content

Commit

Permalink
modified a query which fetches attending users from user object using…
Browse files Browse the repository at this point in the history
… m2m attribute
  • Loading branch information
omkarvijay5 committed Sep 8, 2014
1 parent 83d0b5d commit cde8921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tavern/views.py
Expand Up @@ -30,7 +30,7 @@ def index(request, template='tavern/home.html'):
joined_groups = request.user.tavern_groups.all()
unjoined_groups = list(set(all_groups) - set(joined_groups))
upcoming_events = Event.visible_events.upcoming()
events = Attendee.objects.filter(user=request.user)
events = request.user.events_attending.all()
events_rsvped = [event.event for event in events]

context = {'joined_groups': joined_groups,
Expand Down

0 comments on commit cde8921

Please sign in to comment.