2009/1/22 Karen Tracey :
> Ah, you have in your search_fields for SchedaBilancioGenereOptions
> 'impresa', which is a ForeignKey. You need to specify what field within the
> related model you want to search, so 'impresa__fieldname'. (If there are
> multiple fields you need to list each explicit
On Thu, Jan 22, 2009 at 3:01 AM, Alessandro Ronchi <
alessandro.ron...@soasi.com> wrote:
>
> 2009/1/21 Karen Tracey :
>
> > Egads, they're huge. Any way you could cut that down to a small failing
> > example? Or at least mention which model you are trying the search on?
> > Also a traceback inst
2009/1/21 Karen Tracey :
> Egads, they're huge. Any way you could cut that down to a small failing
> example? Or at least mention which model you are trying the search on?
> Also a traceback instead of just the last error message would probably help,
> as it might give some clue where to start
with a model table he gets this
> >> error:
> >>
> >> TypeError: Related Field has invalid lookup: icontains
> >>
> >> is there anyway to solve it and make it returns nothings instead of 500
> >> error?
> >
> > Some details of the model and admin defs
2009/1/21 Karen Tracey :
> On Wed, Jan 21, 2009 at 10:21 AM, Alessandro Ronchi
> wrote:
>>
>> When one tries to make a search in admin with a model table he gets this
>> error:
>>
>> TypeError: Related Field has invalid lookup: icontains
>>
>>
On Wed, Jan 21, 2009 at 10:21 AM, Alessandro Ronchi <
alessandro.ron...@soasi.com> wrote:
>
> When one tries to make a search in admin with a model table he gets this
> error:
>
> TypeError: Related Field has invalid lookup: icontains
>
> is there anyway to solve it a
When one tries to make a search in admin with a model table he gets this error:
TypeError: Related Field has invalid lookup: icontains
is there anyway to solve it and make it returns nothings instead of 500 error?
--
Alessandro Ronchi
Skype: aronchi
http://www.alessandroronchi.net
SOASI
7 matches
Mail list logo