List Info

Thread: limiting foreign key choices in a selection field




limiting foreign key choices in a selection field
user name
2006-02-28 16:34:36
I have a model such as:

class Part:
    maker = ForeignKey(Maker)
    ......

When I make a form to enter the "part"
information, if I user standard
AddManipulator, maker will become a selection list of all
possible
makers. What if I only want to show a sub-list of makers
that belong to
a specific "category". I suppose I should use
custom manipulators, but
don't know exactly how to do. Pls help!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )