Make user feed only registered events

parent 834d4f49
......@@ -38,8 +38,7 @@ class EventFeed(ICalFeed):
query = Q(published=True)
if self.user:
query &= (Q(registration_start__isnull=True) |
Q(registration__member=self.user))
query &= Q(registration__member=self.user)
return Event.objects.filter(query).order_by('-start')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment