Just wondering how easy it would be to implement something like this:

class Foo(models.Model):
    name = models.CharField(max_length=200)
    bar = models.ForeignKey(Bar)

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

    def __unicode__(self):
        return self.name

Then, in the admin have multiple select boxes to choose a Bar while
creating a new Foo object: one to chose the category of the Bar object
and one to chose the Bar object itself.
When you select a category, the select to chose the Bar filters based
on the category chosen. Would be useful for having lots of Bar objects
to chose from and not having to use raw_id_fields

Any ideas?

Cheers,
Nick

--~--~---------~--~----~------------~-------~--~----~
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