Okay, Here's a quick look at my model layout

Contact :
  company -> ForeignKey -> Company

Company :
  type --> OneToOne --> Type

Type :
  type (character)

I'm trying to build a search that will return contacts based on
certain criteria.  Any other fields in Company that do not join to
another table work just fine (e.g. company__city__icontains=city).
But, any way I've tried to filter based on the type (e.g.
company__type__type__icontans=type) results in failure.  (I've tried
all I can think of, but cannot find a solution).  Failure (in this
case) is :

Join on field 'type' not permitted.

Any ideas would be greatly appreciated!!!

Thanks,

jason

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to