Re: I need a form that allows users to select from a list of choices, or add a new choice.

2013-02-28 Thread Mark London
Great. Thanks very much! On Wednesday, February 27, 2013 6:13:05 PM UTC-5, Rainy wrote: > > > > > On Wednesday, February 27, 2013 11:28:50 AM UTC-5, Mark London wrote: >> >> I need a widget or a method that allows users to select items from a list >> of choices, or add a new choice. Someone on

Re: I need a form that allows users to select from a list of choices, or add a new choice.

2013-02-27 Thread Rainy
On Wednesday, February 27, 2013 11:28:50 AM UTC-5, Mark London wrote: > > I need a widget or a method that allows users to select items from a list > of choices, or add a new choice. Someone on stackoverflow asked the same > question, and got a kludgy answer: > > > http://stackoverflow.com/q

Re: I need a form that allows users to select from a list of choices, or add a new choice.

2013-02-27 Thread Shawn Milochik
Remember, it's just Python. In the end, all you need is for the 'choices' of the field (which is just an iterable) to contain the value after the form's __init__ so that the form won't consider the value invalid. You could: 1. Have a pop-up form that allows the user to submit the new choice via A

I need a form that allows users to select from a list of choices, or add a new choice.

2013-02-27 Thread Mark London
I need a widget or a method that allows users to select items from a list of choices, or add a new choice. Someone on stackoverflow asked the same question, and got a kludgy answer: http://stackoverflow.com/questions/14802167/how-do-i-make-a-django-choicefield-accept-both-preset-choices-and-th