mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Add sorting, enforce foreign keys
This commit is contained in:
@@ -23,7 +23,7 @@ class Consist(models.Model):
|
||||
updated_time = models.DateTimeField(auto_now=True)
|
||||
|
||||
def __str__(self):
|
||||
return "{0}".format(self.identifier)
|
||||
return "{0} {1}".format(self.company, self.identifier)
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse("consist", kwargs={"uuid": self.uuid})
|
||||
|
Reference in New Issue
Block a user