mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Change how images and consists are sorted (#14)
This commit is contained in:
17
ram/consist/migrations/0008_alter_consist_options.py
Normal file
17
ram/consist/migrations/0008_alter_consist_options.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# Generated by Django 4.1.3 on 2023-01-02 15:03
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("consist", "0007_alter_consist_image"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name="consist",
|
||||
options={"ordering": ["company", "-creation_time"]},
|
||||
),
|
||||
]
|
@@ -32,7 +32,7 @@ class Consist(models.Model):
|
||||
return reverse("consist", kwargs={"uuid": self.uuid})
|
||||
|
||||
class Meta:
|
||||
ordering = ["creation_time"]
|
||||
ordering = ["company", "-creation_time"]
|
||||
|
||||
|
||||
class ConsistItem(models.Model):
|
||||
|
Reference in New Issue
Block a user