Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(category): add the sort property on the category model #544

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JohnL17
Copy link
Contributor

@JohnL17 JohnL17 commented May 6, 2024

No description provided.

@JohnL17 JohnL17 requested a review from czosel May 6, 2024 14:08
@JohnL17 JohnL17 force-pushed the add-sort-property-on-category branch from 09c3431 to 152b7c9 Compare May 6, 2024 14:13
@JohnL17 JohnL17 force-pushed the add-sort-property-on-category branch from 152b7c9 to 334d0ab Compare May 6, 2024 14:21
@@ -117,6 +117,7 @@ class Category(SlugModel):
null=True,
related_name="children",
)
sort = models.IntegerField(blank=True, null=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would make sense to add sort as the default ordering to meta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants