pydanny/django-mongonaut — Issue #26: Style and JS Missing when user has invalid permissions
Author: chrisgilmerproj
Created: 2012-02-27 04:55:55+00:00
State: open

Sorry I haven't written a patch and submitted for this, but I wanted to write it up. If you are not logged in and you try to access the admin list view for a particular document you get a page that has no style or javascript. I tracked this down to this line in get_context_data():

https://github.com/pydanny/django-mongonaut/blob/master/mongonaut/views.py#L117

Basically, I'm pretty sure that get_context_data() cannot return anything except a dictionary. Raising an HttpResponseForbidden isn't respected by the view and so you get the rendered page with no real context data. If you don't get to this I might later this week.

Thanks for this project, keep up the good work.