Skip to content

Loading…

'str' object has no attribute 'has_perm' #7

Closed
pxg opened this Issue · 1 comment

2 participants

@pxg

I installed this following the instructions but get an error when I go to admin URLs such as http://127.0.0.1:8000/admin/auth/user/

I am using Django 1.4.1. Here are more details on the error.

Error during template rendering

In template /Users/pxg/Sites/barclaycard_mercury_music/env/lib/python2.7/site-packages/object_tools/templates/admin/change_list.html, error at line 62

L62 {% object_tools cl.model request.user %}

AttributeError at /admin/auth/user/
'str' object has no attribute 'has_perm'
Request Method: GET
Request URL: http://127.0.0.1:8000/admin/auth/user/
Django Version: 1.4.1
Exception Type: AttributeError
Exception Value:

'str' object has no attribute 'has_perm'
Exception Location: /Users/pxg/Sites/barclaycard_mercury_music/env/lib/python2.7/site-packages/object_tools/options.py in has_permission, line 48
Python Executable: /Users/pxg/Sites/barclaycard_mercury_music/env/bin/python
Python Version: 2.7.1
Python Path:

['/Users/pxg/Sites/barclaycard_mercury_music/barclaycard_mmp',
'/Users/pxg/Sites/barclaycard_mercury_music/env/lib/python2.7/site-packages/pip-1.1-py2.7.egg',
'/Users/pxg/Sites/barclaycard_mercury_music/env/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg',
'/Users/pxg/Sites/barclaycard_mercury_music/env/lib/python27.zip',
'/Users/pxg/Sites/barclaycard_mercury_music/env/lib/python2.7',
'/Users/pxg/Sites/barclaycard_mercury_music/env/lib/python2.7/plat-darwin',
'/Users/pxg/Sites/barclaycard_mercury_music/env/lib/python2.7/plat-mac',
'/Users/pxg/Sites/barclaycard_mercury_music/env/lib/python2.7/plat-mac/lib-scriptpackages',
'/Users/pxg/Sites/barclaycard_mercury_music/env/Extras/lib/python',
'/Users/pxg/Sites/barclaycard_mercury_music/env/lib/python2.7/lib-tk',
'/Users/pxg/Sites/barclaycard_mercury_music/env/lib/python2.7/lib-old',
'/Users/pxg/Sites/barclaycard_mercury_music/env/lib/python2.7/lib-dynload',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/Users/pxg/Sites/barclaycard_mercury_music/env/lib/python2.7/site-packages']
Server time: Mon, 22 Oct 2012 16:07:13 +0100

@shaunsephton

Related to issue in django-object-tools, resolved in django-object-tools version 0.0.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.