added customizable Servings text

This commit is contained in:
vabene1111
2021-01-21 20:05:46 +01:00
parent 32044907bf
commit 6992bf83aa
6 changed files with 25 additions and 3 deletions

View File

@ -229,7 +229,7 @@ class RecipeSerializer(WritableNestedModelSerializer):
fields = (
'id', 'name', 'description', 'image', 'keywords', 'steps', 'working_time',
'waiting_time', 'created_by', 'created_at', 'updated_at',
'internal', 'nutrition', 'servings', 'file_path'
'internal', 'nutrition', 'servings', 'file_path', 'servings_text',
)
read_only_fields = ['image', 'created_by', 'created_at']