Verified Commit 39986f75 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Make sure event feed registered value is correct

parent 44ca1d67
......@@ -2,7 +2,7 @@ from django.urls import reverse
from django.utils import timezone
from rest_framework import serializers
from events.models import Event, Registration
from events.models import Event
class CalenderJSSerializer(serializers.ModelSerializer):
......@@ -75,11 +75,6 @@ class EventSerializer(CalenderJSSerializer):
return None
registration = Registration.objects.get(
except (Registration.DoesNotExist, AttributeError):
return False
return registration.is_registered()
return instance.is_member_registered(self.context['user'].member)
except AttributeError:
return None
Supports Markdown
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