basic api
This commit is contained in:
9
cookbook/serializer.py
Normal file
9
cookbook/serializer.py
Normal file
@ -0,0 +1,9 @@
|
||||
from rest_framework import serializers
|
||||
|
||||
from cookbook.models import MealPlan
|
||||
|
||||
|
||||
class MealPlanSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = MealPlan
|
||||
fields = ['recipe', 'title', 'note', 'meal_type']
|
Reference in New Issue
Block a user