Re: TypeError: Related Field has invalid lookup: icontains

2009-01-22 Thread Alessandro Ronchi
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

Re: TypeError: Related Field has invalid lookup: icontains

2009-01-22 Thread Karen Tracey
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

Re: TypeError: Related Field has invalid lookup: icontains

2009-01-22 Thread Alessandro Ronchi
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

Re: TypeError: Related Field has invalid lookup: icontains

2009-01-21 Thread Karen Tracey
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

Re: TypeError: Related Field has invalid lookup: icontains

2009-01-21 Thread Alessandro Ronchi
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 >> >>

Re: TypeError: Related Field has invalid lookup: icontains

2009-01-21 Thread Karen Tracey
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

TypeError: Related Field has invalid lookup: icontains

2009-01-21 Thread Alessandro Ronchi
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