Commit 87ca321e authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg

Merge branch 'unorderd-list' into 'master'

Add ordering to fix UnorderedObjectListWarning warnings

See merge request !1470
parents fc7f561e 7f71429b
# Generated by Django 2.2.9 on 2020-01-25 16:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('documents', '0012_auto_20190516_1536'),
]
operations = [
migrations.AlterModelOptions(
name='miscellaneousdocument',
options={'ordering': ['-created'], 'verbose_name': 'Miscellaneous document', 'verbose_name_plural': 'Miscellaneous documents'},
),
]
......@@ -140,6 +140,7 @@ class MiscellaneousDocument(Document):
"""Describes a miscellaneous document"""
class Meta:
ordering = ["-created"]
verbose_name = _("Miscellaneous document")
verbose_name_plural = _("Miscellaneous documents")
proxy = True
......
# Generated by Django 2.2.9 on 2020-01-25 16:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('education', '0011_auto_20190803_1857'),
]
operations = [
migrations.AlterModelOptions(
name='course',
options={'ordering': ['-pk'], 'verbose_name': 'course', 'verbose_name_plural': 'courses'},
),
]
......@@ -53,6 +53,7 @@ class Course(models.Model, metaclass=ModelTranslateMeta):
return reverse("education:course", args=[str(self.pk)])
class Meta:
ordering = ["-pk"]
verbose_name = _("course")
verbose_name_plural = _("courses")
......
# Generated by Django 2.2.9 on 2020-01-25 16:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('partners', '0015_auto_20190803_1846'),
]
operations = [
migrations.AlterModelOptions(
name='vacancy',
options={'ordering': ['-pk'], 'verbose_name_plural': 'Vacancies'},
),
]
......@@ -215,6 +215,7 @@ class Vacancy(models.Model):
class Meta:
"""Meta class for vacancy model."""
ordering = ["-pk"]
verbose_name_plural = _("Vacancies")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment