Re: How to make a query form depend on a field?

2011-09-27 Thread David G. Pullman
On Sep 26, 2011, at 5:06 PM, Doug Ballance wrote: > There are also a few third-party apps that can assist you with the > form->query process such as this one: > > https://github.com/alex/django-filter > > -- > You received this message because you are subscribed to the Google Groups >

Re: How to make a query form depend on a field?

2011-09-26 Thread Russell Keith-Magee
On Mon, Sep 26, 2011 at 11:59 PM, Tom Evans wrote: > On Mon, Sep 26, 2011 at 4:26 PM, David G. Pullman > wrote: >> Thanks very much for helping to separate the processing.  I'm trying to >> implement a setup using your suggestions.  I've hit a

Re: How to make a query form depend on a field?

2011-09-26 Thread Doug Ballance
There are also a few third-party apps that can assist you with the form->query process such as this one: https://github.com/alex/django-filter -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: How to make a query form depend on a field?

2011-09-26 Thread David G. Pullman
On Sep 26, 2011, at 11:59 AM, Tom Evans wrote: > 100% certain that was just a brain fade on Russell's part, it should > be forms.ModelChoiceField > > https://docs.djangoproject.com/en/1.3/ref/forms/fields/#modelchoicefield > > Cheers > > Tom > > -- > You received this message because you

Re: How to make a query form depend on a field?

2011-09-26 Thread Tom Evans
On Mon, Sep 26, 2011 at 4:26 PM, David G. Pullman wrote: > Thanks very much for helping to separate the processing.  I'm trying to > implement a setup using your suggestions.  I've hit a snag on a detail: > >> class SearchForm(forms.Form): >>    organization =

Re: How to make a query form depend on a field?

2011-09-26 Thread David G. Pullman
On Sep 25, 2011, at 7:45 PM, Russell Keith-Magee wrote: > On Sun, Sep 25, 2011 at 9:00 PM, David wrote: >> I'm new to Django, gone through the django book and some >> documentation, but I can't find how to do this or if it's possible. >> >> I have a model that lists

Re: How to make a query form depend on a field?

2011-09-25 Thread Russell Keith-Magee
On Sun, Sep 25, 2011 at 9:00 PM, David wrote: > I'm new to Django, gone through the django book and some > documentation, but I can't find how to do this or if it's possible. > > I have a model that lists documents with title and edition.  It also > has a foreign key to

How to make a query form depend on a field?

2011-09-25 Thread David
I'm new to Django, gone through the django book and some documentation, but I can't find how to do this or if it's possible. I have a model that lists documents with title and edition. It also has a foreign key to an organization table. I'm trying to create a query form that first takes the