diff --git a/organization/magazine/migrations/0056_alter_article_options.py b/organization/magazine/migrations/0056_alter_article_options.py new file mode 100644 index 00000000..10d98993 --- /dev/null +++ b/organization/magazine/migrations/0056_alter_article_options.py @@ -0,0 +1,17 @@ +# Generated by Django 3.2.19 on 2023-08-23 21:21 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('organization_magazine', '0055_auto_20230823_2310'), + ] + + operations = [ + migrations.AlterModelOptions( + name='article', + options={'ordering': ['is_featured', '-updated', 'title'], 'permissions': (('user_add', 'Mezzo - User - User can add its own content'), ('user_edit', 'Mezzo - User - User can edit its own content'), ('user_delete', 'Mezzo - User - User can delete its own content'), ('team_add', "Mezzo - Team - User can add to his team's content"), ('team_edit', "Mezzo - Team - User can edit his team's content"), ('team_delete', "Mezzo - Team - User can delete his team's content")), 'verbose_name': 'article'}, + ), + ] diff --git a/organization/magazine/models.py b/organization/magazine/models.py index f8b82aff..522c3f20 100644 --- a/organization/magazine/models.py +++ b/organization/magazine/models.py @@ -69,7 +69,7 @@ def get_absolute_url(self): class Meta: verbose_name = _('article') permissions = TeamOwnable.Meta.permissions - ordering = ["is_featured", "updated", "title", ] + ordering = ["is_featured", "-updated", "title", ] class ArticleImage(Image):