evildmp / Arkestra

Arkestra extends Django CMS to provide an intelligent semantic web publishing system for organisations and institutions.
http://arkestra-project.org
BSD 2-Clause "Simplified" License
139 stars 27 forks source link

'AdminSite' object has no attribute 'root_path' #67

Closed darbula closed 11 years ago

darbula commented 11 years ago

Following issue is probably connected to this commit.

When ENABLE_CONTACTS_AND_PEOPLE_AUTH_ADMIN_INTEGRATION = True then following error occurs if admin wants to add a new user:

/.../env/lib/python2.7/site-packages/django/core/handlers/base.py in get_response
                        response = callback(request, *callback_args, **callback_kwargs) ...
/.../env/lib/python2.7/site-packages/django/contrib/admin/options.py in wrapper
                return self.admin_site.admin_view(view)(*args, **kwargs) ...
/.../env/lib/python2.7/site-packages/django/utils/decorators.py in _wrapped_view
                    response = view_func(request, *args, **kwargs) ...
/.../env/lib/python2.7/site-packages/django/views/decorators/cache.py in _wrapped_view_func
        response = view_func(request, *args, **kwargs) ...
/.../env/lib/python2.7/site-packages/django/contrib/admin/sites.py in inner
            return view(request, *args, **kwargs) ...
/.../env/src/arkestra/contacts_and_people/admin.py in add_view
                'root_path': self.admin_site.root_path, 
evildmp commented 11 years ago

Thanks, I can replicate this, and will investigate.

evildmp commented 11 years ago

Code simplified thanks to newer Django admin functionality. Thanks darbula for pointing out the problem.