You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What we're after:
As a Wagtail user who needs a snippet, it would be good to not have to go to the last page for the one I need.
Right now the snippets are in the order they were created. That means some of the most used ones (contribution limits for 2023-2024) and COVID snippet) are on the last page.
We could add this to the EmbedSnippet model and it will order the snippets in the Wagtail admin from newest to oldest, putting most recently created on page one.
class Meta:
ordering = ['-id']
Don't forget to run makemigrations and add the new migration file to the PR.
Note: Wagtail 4 will have a ton of new ways to handle Snippets, including adding sortability in the admin panel, although the implementation looks a bit complex at first glance of the docs.
Summary
What we're after:
As a Wagtail user who needs a snippet, it would be good to not have to go to the last page for the one I need.
Right now the snippets are in the order they were created. That means some of the most used ones (contribution limits for 2023-2024) and COVID snippet) are on the last page.
Background information: https://stackoverflow.com/questions/63472227/wagtail-how-to-order-snippets
Completion criteria
The text was updated successfully, but these errors were encountered: