Re: Conditional choice fields for model specification...

2011-12-06 Thread Derek
On Dec 5, 11:06 pm, Marc Edwards wrote: > I would like to create my choice fields in my models according to a > hierarchy of conditions, but I can't think of how to specify this in > Python. Marc You'd need to do this using Javascript/AJAX, in the browser. Your model definition would contain al

Conditional choice fields for model specification...

2011-12-05 Thread Marc Edwards
I would like to create my choice fields in my models according to a hierarchy of conditions, but I can't think of how to specify this in Python. For example...pseudo code... class mod1(models.Model): choice1 = ( ('a', 'A'), ('b', 'B'), ) choice_a_if_choice1_is_A = (