mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Improve road number sorting and enforce company on consists
This commit is contained in:
@@ -13,9 +13,7 @@ class Consist(models.Model):
|
||||
consist_address = models.SmallIntegerField(
|
||||
default=None, null=True, blank=True
|
||||
)
|
||||
company = models.ForeignKey(
|
||||
Company, on_delete=models.CASCADE, null=True, blank=True
|
||||
)
|
||||
company = models.ForeignKey(Company, on_delete=models.CASCADE)
|
||||
era = models.CharField(max_length=32, blank=True)
|
||||
image = models.ImageField(upload_to="images/", null=True, blank=True)
|
||||
notes = models.TextField(blank=True)
|
||||
|
Reference in New Issue
Block a user