Re: A view that looks up a model field

2006-10-01 Thread brad
Alright I got my model problem corrected. I needed to use the ForgeinKey() statement, so if there are any self-confusing newbies who are having this problem refer to: The url Matthew Flanagan provided to us in one of the replies above, and Tutorial 1 in the Django documentation ((( http://www.djan

Re: A view that looks up a model field

2006-10-01 Thread Malcolm Tredinnick
On Sun, 2006-10-01 at 19:15 -0700, brad wrote: > I think that I need to modify models.py to fit the scheme I thought > that I had. The following is a table representation of what I thought I > had with my current models.py: > > Table: Game > > id game > == > 0

Re: A view that looks up a model field

2006-10-01 Thread brad
I think that I need to modify models.py to fit the scheme I thought that I had. The following is a table representation of what I thought I had with my current models.py: Table: Game id game == 0 0_Option1 1 1_Option1 1 1_Option2

Re: A view that looks up a model field

2006-10-01 Thread Matthew Flanagan
Hi Brad, Have a look at http://code.djangoproject.com/wiki/AJAXWidgetComboBox it seems to do most of what you are after. On 02/10/06, brad <[EMAIL PROTECTED]> wrote: > > Hello. I am trying to build a view to lookup a model field and return > an array based on the data sent to the view. The goal

Re: A view that looks up a model field

2006-10-01 Thread Malcolm Tredinnick
Hi Brad, On Sun, 2006-10-01 at 18:07 -0700, brad wrote: > Hello. I am trying to build a view to lookup a model field and return > an array based on the data sent to the view. The goal is to send the > contents of the "value" tag in an html select statement( i.e. in > OPTION to send the SOME_VALUE

A view that looks up a model field

2006-10-01 Thread brad
Hello. I am trying to build a view to lookup a model field and return an array based on the data sent to the view. The goal is to send the contents of the "value" tag in an html select statement( i.e. in OPTION to send the SOME_VALUE part) to a Django view with a Dojo request call, have the Django