Commit 0f28872a authored by Gijs Hendriksen's avatar Gijs Hendriksen
Browse files

Add event pk to PizzaEvent serializer

parent 0e163631
......@@ -10,9 +10,12 @@ class PizzaSerializer(serializers.ModelSerializer):
class PizzaEventSerializer(serializers.ModelSerializer):
event = serializers.PrimaryKeyRelatedField(read_only=True)
class Meta:
model = PizzaEvent
fields = ('start', 'end', 'title')
fields = ('start', 'end', 'event', 'title')
class OrderSerializer(serializers.ModelSerializer):
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