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

Fix info fields in events API registrations

parent 0752efab
......@@ -247,7 +247,7 @@ class RegistrationSerializer(serializers.ModelSerializer):
model = Registration
fields = ('pk', 'member', 'name', 'photo', 'registered_on',
'is_late_cancellation', 'is_cancelled',
'queue_position', 'fields')
name = serializers.SerializerMethodField('_name')
photo = serializers.SerializerMethodField('_photo')
......@@ -258,6 +258,7 @@ class RegistrationSerializer(serializers.ModelSerializer):
queue_position = serializers.SerializerMethodField(
'_queue_position', read_only=False)
fields = serializers.HiddenField(default='')
def _is_late_cancellation(self, instance):
val = instance.is_late_cancellation()
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