I recently enabled the admin module on a project I am working on, and some (formerly) passing tests began erroring when testing redirects. Here is the exception traceback from a failing test:
Traceback (most recent call last): File "E:\dev\seo\src\seo\sm\tests.py", line 135, in test_seeking_CitiesRedirect response = self.client.get('/singles/New York/New York/') File "e:\dev\django\django\test\client.py", line 200, in get return self.request(**r) File "e:\dev\django\django\core\handlers\base.py", line 77, in get_response response = callback(request, *callback_args, **callback_kwargs) File "E:\dev\seo\src\seo\sm\views.py", line 170, in seeking 'seek_slug': seek_name})) File "e:\dev\django\django\core\urlresolvers.py", line 282, in reverse return '/' + get_resolver(urlconf).reverse(viewname, *args, **kwargs) File "e:\dev\django\django\core\urlresolvers.py", line 267, in reverse if lookup_view in self.reverse_dict: File "e:\dev\django\django\core\urlresolvers.py", line 207, in _get_reverse_dict for key, value in pattern.reverse_dict.iteritems(): File "e:\dev\django\django\core\urlresolvers.py", line 210, in _get_reverse_dict self._reverse_dict[pattern.callback] = (pattern,) File "e:\dev\django\django\core\urlresolvers.py", line 170, in _get_callback self._callback = get_callable(self._callback_str) File "e:\dev\django\django\utils\functional.py", line 16, in wrapper result = func(*args) File "e:\dev\django\django\core\urlresolvers.py", line 44, in get_callable lookup_view = getattr(__import__(mod_name, {}, {}, ['']), func_name) File "e:\dev\django\django\contrib\admin\views\doc.py", line 291, in <module> 'AutoField' : _('Integer'), TypeError: 'str' object is not callable This is occurring wherever I test a redirect. If I comment out the admin line in urls.py, the errors disappear. I am on the latest development version to date (5541). Any insight or help would be greatly appreciated! Thanks. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---