Hi,

I have created a simple categories app, and now I want to be able to
categorize my articles, which are handled by a different app.  I'd
like to create a multiselect categories field in my articles admin
that is populated by the category entries from my categories app.

In my categories app, I have to ability to create category groups.
This is the models.py for the categories app...

from django.db import models

class Group(models.Model):
    name = models.CharField(max_length=200)

    def __str__(self):
        return self.name

class Category(models.Model):
    group = models.ForeignKey(Group)
    name = models.CharField(max_length=200)

    def __str__(self):
        return self.name

    class Meta:
        verbose_name_plural = 'categories'

I want to set up my articles admin interface so there is a different
multiselect box for each category group, or one large multiselect with
the categories organized in groups.

I am not quite sure what to do in articles/admin.py and/or elsewhere
to achieve this.

Any ideas?

Thanks,
Ryan


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to