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

@@ -5,8 +5,6 @@ from django.conf import settings
from django.urls import reverse
from django_countries.fields import CountryField
from tinymce import models as tinymce
from ram.utils import DeduplicatedStorage
from ram.models import BaseModel, Image, Document, PropertyInstance
from metadata.models import Scale, Manufacturer, Shop, Tag
@@ -48,7 +46,6 @@ class BaseBook(BaseModel):
)
number_of_pages = models.SmallIntegerField(null=True, blank=True)
publication_year = models.SmallIntegerField(null=True, blank=True)
description = tinymce.HTMLField(blank=True)
shop = models.ForeignKey(
Shop, on_delete=models.CASCADE, null=True, blank=True
)