mirror of
https://github.com/daniviga/django-ram.git
synced 2025-10-19 09:00:32 +02:00
Fix a CASCADE on shops
This commit is contained in:
@@ -104,7 +104,7 @@ class RollingStock(BaseModel):
|
||||
)
|
||||
production_year = models.SmallIntegerField(null=True, blank=True)
|
||||
shop = models.ForeignKey(
|
||||
Shop, on_delete=models.CASCADE, null=True, blank=True
|
||||
Shop, on_delete=models.SET_NULL, null=True, blank=True
|
||||
)
|
||||
purchase_date = models.DateField(null=True, blank=True)
|
||||
price = models.DecimalField(
|
||||
|
Reference in New Issue
Block a user