Add serving count to recipe

This commit is contained in:
tourn
2020-08-30 15:59:25 +02:00
parent 82497c734a
commit 652b4bf2af
6 changed files with 34 additions and 5 deletions

View File

@@ -139,7 +139,7 @@ class RecipeSerializer(WritableNestedModelSerializer):
class Meta:
model = Recipe
fields = ['id', 'name', 'image', 'keywords', 'steps', 'working_time', 'waiting_time', 'created_by', 'created_at', 'updated_at', 'internal']
fields = ['id', 'name', 'image', 'keywords', 'steps', 'working_time', 'waiting_time', 'servings', 'created_by', 'created_at', 'updated_at', 'internal']
read_only_fields = ['image', 'created_by', 'created_at']