Closes #17841 Allows Tags to be displayed in specified order (#18930)

This commit is contained in:
Jason Novinger
2025-03-19 12:17:35 -05:00
committed by GitHub
parent d25605c261
commit 6b7d23d684
15 changed files with 110 additions and 18 deletions

View File

@@ -513,6 +513,7 @@ class TagTest(APIViewTestCases.APIViewTestCase):
{
'name': 'Tag 4',
'slug': 'tag-4',
'weight': 1000,
},
{
'name': 'Tag 5',
@@ -533,7 +534,7 @@ class TagTest(APIViewTestCases.APIViewTestCase):
tags = (
Tag(name='Tag 1', slug='tag-1'),
Tag(name='Tag 2', slug='tag-2'),
Tag(name='Tag 3', slug='tag-3'),
Tag(name='Tag 3', slug='tag-3', weight=26),
)
Tag.objects.bulk_create(tags)