Add shop field (from properties) (#48)

* Add shop field (from properties)

* Update template
This commit is contained in:
2025-01-27 00:34:44 +01:00
committed by GitHub
parent 1a8f2aace8
commit d16e00d66b
16 changed files with 191 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ class BookSerializer(serializers.ModelSerializer):
class Meta:
model = Book
exclude = ("purchase_date", "price",)
exclude = ("shop", "purchase_date", "price",)
read_only_fields = ("creation_time", "updated_time")