Re: Limiting Foreign Key choices to members of a certain group using generic views

2007-11-02 Thread RajeshD
> > # run with this form following the examples in the newforms > documentations. You can also change the domain "choices" after the form class is created for you by modifying the form class's base_fields as I see you have done in your post in another thread here: http://groups.google.com/group/

Re: Limiting Foreign Key choices to members of a certain group using generic views

2007-11-02 Thread RajeshD
On Nov 2, 4:02 pm, rm <[EMAIL PROTECTED]> wrote: > On Nov 2, 3:54 pm, RajeshD <[EMAIL PROTECTED]> wrote: > > > When you acquire a Customer newform instance in your view, you will be > > able to modify the choices attribute of its domain field so that these > > choices only contain the relevant d

Re: Limiting Foreign Key choices to members of a certain group using generic views

2007-11-02 Thread rm
On Nov 2, 3:54 pm, RajeshD <[EMAIL PROTECTED]> wrote: > When you acquire a Customer newform instance in your view, you will be > able to modify the choices attribute of its domain field so that these > choices only contain the relevant domains that you mentioned you can > trivially derive knowin

Re: Limiting Foreign Key choices to members of a certain group using generic views

2007-11-02 Thread RajeshD
> > I'm after a way of limiting what choices are populated into a drop-down > box from a foreign key field when I'm using the generic create/update views: I would recommend not using the generic create/update views as those views use old forms and manipulators which are going away in favor of "n

Limiting Foreign Key choices to members of a certain group using generic views

2007-11-02 Thread Darryl Ross
Hey All, I'm after a way of limiting what choices are populated into a drop-down box from a foreign key field when I'm using the generic create/update views: What I am trying to achieve is to be able to limit the list of domains that a reseller can apply to their customer objects to domains that