I'm getting a strange error that I have not been able to sort out. When moving my project to the production server the below query stops working. (It works fine on Mac)
I noticed that using CamelCase in fieldnames is an issue when moving code, but that doesn't seem to be the problem here. Any other hints that could point me in any direction? Thanks Sten .... qs = InfoProxy.objects.filter(info_locations__country_code = where.country_code) the related model: class InfoLocation(models.Model): info_proxy = models.ForeignKey(InfoProxy, db_column="info_proxy_id", related_name='info_locations') country_code = models.CharField(maxlength=2, db_index=True) ..... The trace: File "/usr/local/lib/python2.4/site-packages/django/db/models/query.py", line 171, in iterator select, sql, params = self._get_sql_clause() File "/usr/local/lib/python2.4/site-packages/django/db/models/query.py", line 444, in _get_sql_clause joins2, where2, params2 = self._filters.get_sql(opts) File "/usr/local/lib/python2.4/site-packages/django/db/models/query.py", line 574, in get_sql joins2, where2, params2 = val.get_sql(opts) File "/usr/local/lib/python2.4/site-packages/django/db/models/query.py", line 622, in get_sql return parse_lookup(self.kwargs.items(), opts) File "/usr/local/lib/python2.4/site-packages/django/db/models/query.py", line 730, in parse_lookup joins2, where2, params2 = lookup_inner(path, lookup_type, value, opts, opts.db_table, None) File "/usr/local/lib/python2.4/site-packages/django/db/models/query.py", line 831, in lookup_inner raise TypeError, "Cannot resolve keyword '%s' into field" % name TypeError: Cannot resolve keyword 'info_locations' into field --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---