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

feed categories and subcategories #10

Open
rizumu opened this issue May 16, 2012 · 0 comments
Open

feed categories and subcategories #10

rizumu opened this issue May 16, 2012 · 0 comments
Labels

Comments

@rizumu
Copy link
Owner

rizumu commented May 16, 2012

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")
@rizumu rizumu added the feature label Apr 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant