id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 423,Admin filters broken with [549],jkocherhans@…,Adrian Holovaty,"I changed my models over to the new syntax and svn up'd django this morning. Everything seems to work fine except for filters in the admin interface. I have a ForeignKey realtion called 'site'... the admin interface generates a url like: http://127.0.0.1:8000/childabuse/data/patients/?site__exact=4 Which results in the traceback below. If I manually type in the url: http://127.0.0.1:8000/childabuse/data/patients/?site__id__exact=4 It works as expected. I'm not sure if this is a problem with the admin interface, or the db api. According to the new db api docs, it looks like a problem with the admin interface though. {{{ Traceback (most recent call last): File ""/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py"", line 64, in get_response response = callback(request, **param_dict) File ""/usr/local/lib/python2.4/site-packages/django/views/admin/main.py"", line 177, in change_list result_count = p.hits File ""/usr/local/lib/python2.4/site-packages/django/core/paginator.py"", line 67, in _get_hits self._hits = getattr(self.module, self.count_method)(**order_args) File ""/usr/local/lib/python2.4/site-packages/django/utils/functional.py"", line 3, in _curried return args[0](*(args[1:]+moreargs), **dict(kwargs.items() + morekwargs.items())) File ""/usr/local/lib/python2.4/site-packages/django/core/meta/__init__.py"", line 1127, in function_get_count _, sql, params = function_get_sql_clause(opts, **kwargs) File ""/usr/local/lib/python2.4/site-packages/django/core/meta/__init__.py"", line 1299, in function_get_sql_clause tables2, join_where2, where2, params2, _ = _parse_lookup(kwargs.items(), opts) File ""/usr/local/lib/python2.4/site-packages/django/core/meta/__init__.py"", line 1228, in _parse_lookup _throw_bad_kwarg_error(kwarg) File ""/usr/local/lib/python2.4/site-packages/django/core/meta/__init__.py"", line 1178, in _throw_bad_kwarg_error raise TypeError, ""got unexpected keyword argument '%s'"" % kwarg TypeError: got unexpected keyword argument 'site__exact' }}}",defect,closed,contrib.admin,,normal,fixed,,,Unreviewed,0,0,0,0,0,0