> > Anyway, let us know if you find something and I'll keep this turning > over in the back of my mind. > > The problem seems to lie in the find_field function as called from lookup_inner in query.py. When I throw in some print statements it looks like it's doing a find_field for article with a site object. It loops through name and id but is looking for article - which is not defined with site.
Here's the debug code I threw in def find_field(name, field_list, related_query): """ Finds a field with a specific name in a list of field instances. Returns None if there are no matches, or several matches. """ if related_query: matches = [f for f in field_list if f.field.related_query_name() == name] else: for f in field_list: print "%s (%s) - %s (%s)\n" % (name,type(name), f.name,type(f.name)) if name == f.name: print "Found it" matches = [f for f in field_list if f.name == name] if len(matches) != 1: return None return matches[0] Of course, it never matches.... Any other ideas how to debug this? Do I need to step back farther into the code? Thanks Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---