Fix the API

This commit is contained in:
2022-04-02 21:37:16 +02:00
parent fd43ee34cb
commit e3da5d05d4
12 changed files with 166 additions and 10 deletions

View File

@@ -20,6 +20,7 @@ class RollingClass(models.Model):
type = models.ForeignKey(
RollingStockType, on_delete=models.CASCADE,
null=True, blank=True)
description = models.CharField(max_length=256, blank=True)
company = models.ForeignKey(
Company, on_delete=models.CASCADE,
null=True, blank=True)