Monday, July 9, 2012

Re: database values in a select form.

On Sun, Jul 8, 2012 at 7:39 PM, Michael Elkins <me@sigpipe.org> wrote:
> On Sat, Jul 07, 2012 at 08:25:54PM -0700, Lee Hinde wrote:
>>
>> What I'm noticing is that (in dev mode) the choice list for
>> 'employment_status' doesn't update unless I trigger a change, either
>> to the forms.py or restart the dev server.
>>
>> I'm wondering if there's a better place to handle this.
>
>
> Lee,
>
> Here are some examples of the solution to your problem:
>
> http://ilian.i-n-i.org/django-forms-choicefield-with-dynamic-values/
>
> http://stackoverflow.com/questions/3419997/creating-a-dynamic-choice-field
>
> You can do a web search on "form choicefield dynamic" for other discussions
> on the same topic.
>
> me
>

Thanks.

I combined the two tips and have something that works. I appreciate the help.

And, I did google first, really. Just not the right keywords as it turns out...

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate