# TODO first_name and last_name set as not required to throwing an exception if they are not included in what is sent back from the frontend. It is perhaps not required that they are in the reponse from the client if the guest should be allowed to change them
first_name=serializers.CharField(required=False)
first_name=serializers.CharField(required=False)
last_name=serializers.CharField(required=False)
last_name=serializers.CharField(required=False)
email=serializers.CharField(required=True)
email=serializers.CharField(required=True)
...
@@ -65,8 +66,9 @@ class GuestRegisterSerializer(serializers.ModelSerializer):
...
@@ -65,8 +66,9 @@ class GuestRegisterSerializer(serializers.ModelSerializer):
# TODO: we only want to allow changing the name if we don't have one
# TODO: we only want to allow changing the name if we don't have one
# from a reliable source (Feide/KORR)
# from a reliable source (Feide/KORR)
instance.first_name=validated_data["first_name"]
# TODO Comment back in after it is decided if name updates are allowed