Re: clean method on ModelChoiceField

2007-08-17 Thread Malcolm Tredinnick
On Fri, 2007-08-17 at 09:32 +, james_027 wrote: > hi, > > while doing some experiment with ModelChoiceField, and having success > with this settings ModelChoiceField(Item.objects.all(), > widget=TextInput). There's one thing that didn't work right for me ... > If I have Item.objects.filter(na

clean method on ModelChoiceField

2007-08-17 Thread james_027
hi, while doing some experiment with ModelChoiceField, and having success with this settings ModelChoiceField(Item.objects.all(), widget=TextInput). There's one thing that didn't work right for me ... If I have Item.objects.filter(name__icontains=='sony') instead of Item.objects.all() and the inp