On 10 jan, 18:56, rabbi wrote:
> Hi,
> I'm trying to write a generic filter function do something like
> following:
>MyModel.objects.filter( getattr(???,my_dict['search_field']
> +'__iexact')=my_dict['search_value'] )
>
> But I don't know what to put in place of '???'
> Where does 'field_
High 5! :-)
On Jan 10, 7:30 pm, Christian Joergensen wrote:
> rabbi wrote:
> > Hi,
> > I'm trying to write a generic filter function do something like
> > following:
> > MyModel.objects.filter( getattr(???,my_dict['search_field']
> > +'__iexact')=my_dict['search_value'] )
>
> > But I don'
rabbi wrote:
> Hi,
> I'm trying to write a generic filter function do something like
> following:
>MyModel.objects.filter( getattr(???,my_dict['search_field']
> +'__iexact')=my_dict['search_value'] )
>
> But I don't know what to put in place of '???'
> Where does 'field__iexact' actually
Hi,
I'm trying to write a generic filter function do something like
following:
MyModel.objects.filter( getattr(???,my_dict['search_field']
+'__iexact')=my_dict['search_value'] )
But I don't know what to put in place of '???'
Where does 'field__iexact' actually come from?
Is it part of MyMo
4 matches
Mail list logo