This commit is contained in:
smilerz
2021-10-01 15:59:21 -05:00
parent 94c69271d3
commit 3d359f844f
6 changed files with 73 additions and 56 deletions

View File

@ -390,10 +390,7 @@ class FoodSerializer(UniqueFieldsMixin, WritableNestedModelSerializer, ExtendedR
class Meta:
model = Food
fields = (
'id', 'name', 'description', 'shopping', 'recipe', 'ignore_shopping', 'supermarket_category',
'image', 'parent', 'numchild', 'numrecipe', 'on_hand', 'inherit', 'ignore_inherit',
)
fields = ('id', 'name', 'description', 'recipe', 'ignore_shopping', 'supermarket_category', 'image', 'parent', 'numchild', 'numrecipe', 'on_hand')
read_only_fields = ('id', 'numchild', 'parent', 'image', 'numrecipe')