Skip to content

Commit

Permalink
update the ProductUpdate meta class to include ordering (#7530)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pomax authored Sep 29, 2021
1 parent 1ab3719 commit e545f19
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 3.1.11 on 2021-09-29 21:16

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('wagtailpages', '0039_auto_20210926_2156'),
]

operations = [
migrations.AlterModelOptions(
name='productupdates',
options={'ordering': ['sort_order'], 'verbose_name': 'Product Update'},
),
]
3 changes: 2 additions & 1 deletion network-api/networkapi/wagtailpages/pagemodels/products.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,9 @@ class ProductUpdates(TranslatableMixin, Orderable):
SnippetChooserPanel('update'),
]

class Meta(TranslatableMixin.Meta):
class Meta(TranslatableMixin.Meta, Orderable.Meta):
verbose_name = 'Product Update'
ordering = ['sort_order']


class ProductPage(AirtableMixin, FoundationMetadataPageMixin, Page):
Expand Down

0 comments on commit e545f19

Please sign in to comment.