You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

12 lines
503 B

from rest_framework import serializers
from .models import Member
class MemberSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Member
fields = ('id', 'email', 'email_consent', 'email_consent', 'first_name', 'last_name', 'preferred_name',
'date_of_birth', 'guardian_name', 'phone', 'street', 'city', 'province', 'country', 'post_code',
'waiver', 'is_active', 'banned', 'suspended')
id = serializers.ReadOnlyField()