Add shop as a fixed property (#49)

* Add shop field (from properties)

* Update template

* Implement description in BaseModel and then consist

* Make notes internal only

* Fix a merge issue
This commit is contained in:
2025-01-27 23:16:52 +01:00
committed by GitHub
parent d16e00d66b
commit b10e1f3952
12 changed files with 52 additions and 36 deletions

View File

@@ -26,7 +26,12 @@ class BookSerializer(serializers.ModelSerializer):
class Meta:
model = Book
exclude = ("shop", "purchase_date", "price",)
exclude = (
"notes",
"shop",
"purchase_date",
"price",
)
read_only_fields = ("creation_time", "updated_time")
@@ -37,5 +42,10 @@ class CatalogSerializer(serializers.ModelSerializer):
class Meta:
model = Catalog
exclude = ("purchase_date", "price",)
exclude = (
"notes",
"shop",
"purchase_date",
"price",
)
read_only_fields = ("creation_time", "updated_time")