mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
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:
@@ -113,7 +113,6 @@ class RollingStock(BaseModel):
|
||||
null=True,
|
||||
blank=True,
|
||||
)
|
||||
description = tinymce.HTMLField(blank=True)
|
||||
tags = models.ManyToManyField(
|
||||
Tag, related_name="rolling_stock", blank=True
|
||||
)
|
||||
|
@@ -29,5 +29,10 @@ class RollingStockSerializer(serializers.ModelSerializer):
|
||||
|
||||
class Meta:
|
||||
model = RollingStock
|
||||
exclude = ("shop", "purchase_date", "price",)
|
||||
exclude = (
|
||||
"notes",
|
||||
"shop",
|
||||
"purchase_date",
|
||||
"price",
|
||||
)
|
||||
read_only_fields = ("creation_time", "updated_time")
|
||||
|
Reference in New Issue
Block a user