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
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 = (
2 matches
Mail list logo