edit supermarket categories

This commit is contained in:
smilerz
2021-10-31 11:18:36 -05:00
parent 8b682c33f3
commit 757fa5e49c
4 changed files with 564 additions and 255 deletions

View File

@ -329,6 +329,9 @@ class SupermarketCategorySerializer(UniqueFieldsMixin, WritableNestedModelSerial
class SupermarketCategoryRelationSerializer(WritableNestedModelSerializer):
category = SupermarketCategorySerializer()
def get_fields(self, *args, **kwargs):
return super().get_fields(*args, **kwargs)
class Meta:
model = SupermarketCategoryRelation
fields = ('id', 'category', 'supermarket', 'order')