Re: filtering in ModelChoices not working

2008-04-23 Thread Kenneth Gonsalves
replying to myself On 23-Apr-08, at 2:28 PM, Kenneth Gonsalves wrote: > class Ingredientrecform(forms.ModelForm): > """ > Form to add Ingredients. > """ > def __init__(self,pageid, *args, **kwargs): > super(Ingredientrecform, self).__init__(*args, **kwargs) >

filtering in ModelChoices not working

2008-04-23 Thread Kenneth Gonsalves
hi, this is my code snippet: class Ingredientrecform(forms.ModelForm): """ Form to add Ingredients. """ def __init__(self,pageid, *args, **kwargs): super(Ingredientrecform, self).__init__(*args, **kwargs) self.pageid = pageid ingredient