We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
At the moment 'Music' is hard wired.
Let try the solution of adding a category model, it can have a foreign key to itself to iteslf to implement the hierarchy.
class Category(models.Model): title = models.CharField(_("title"), max_length=255) slug = AutoSlugField(_("slug"), populate_from="title") parent = models.ForeignKey("self", blank=True, null=True, related_name="child")
The text was updated successfully, but these errors were encountered:
No branches or pull requests
At the moment 'Music' is hard wired.
Let try the solution of adding a category model, it can have a foreign key to itself to iteslf to implement the hierarchy.
The text was updated successfully, but these errors were encountered: