Skip to content

Commit

Permalink
update order
Browse files Browse the repository at this point in the history
  • Loading branch information
yomguy committed Aug 23, 2023
1 parent 99533c7 commit 3ca661b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions organization/magazine/migrations/0056_alter_article_options.py
Original file line number Diff line number Diff line change
@@ -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'},
),
]
2 changes: 1 addition & 1 deletion organization/magazine/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 3ca661b

Please sign in to comment.