diff --git a/cookbook/serializer.py b/cookbook/serializer.py index a21ab9fe3..8695154f2 100644 --- a/cookbook/serializer.py +++ b/cookbook/serializer.py @@ -173,7 +173,7 @@ class SupermarketSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class FoodSerializer(UniqueFieldsMixin, WritableNestedModelSerializer): - supermarket_category = SupermarketCategorySerializer(read_only=True) + supermarket_category = SupermarketCategorySerializer(allow_null=True) def create(self, validated_data): # since multi select tags dont have id's diff --git a/cookbook/templates/shopping_list.html b/cookbook/templates/shopping_list.html index 46a71205d..596ffd7a7 100644 --- a/cookbook/templates/shopping_list.html +++ b/cookbook/templates/shopping_list.html @@ -110,12 +110,15 @@ - -