Re: chained selectboxes with simpleJson call

2013-02-12 Thread vijay shanker
well override ModelForm's __init__ and if theres a kwargs , then populate choices depending upon the value of model_name , as well override def clean() to handle model attribute. class ConditionSetAdminForm(forms.ModelForm): def __init__(self,*args,**kwargs):

chained selectboxes with simpleJson call

2013-02-12 Thread vijay shanker
hey all I have a model which is as such: *in models.py* class ConditionSet(models.Model): model_name =models.CharField(max_length= 50) model_attribute =models.CharField(max_length=50) operator =models.CharField(max_length=50, choices=OPERATORS) val