Fix consists pagination and remove hardcoded urls

This commit is contained in:
2022-07-10 22:48:45 +02:00
parent d39cd47280
commit 353da224be
7 changed files with 48 additions and 24 deletions

View File

@@ -27,6 +27,9 @@ class Consist(models.Model):
def get_absolute_url(self):
return reverse("consist", kwargs={"uuid": self.uuid})
class Meta:
ordering = ["creation_time"]
class ConsistItem(models.Model):
consist = models.ForeignKey(