[Django]-Finding the cause of of 403 forbidden error in django admin

7👍

In the end, I add debug and traceback directly into the Django source.
I manage to trace it back to:

if not self.has_change_permission(request, obj):
   raise PermissionDenied

This reminded me I had overridden has_change_permission(self, request, obj=None) in my model.

0👍

If you’re using Firefox (or any browser) with Web Developer Toolbar, make sure you have cookies enabled. I temporarily had cookies turned off and forgot to turn it back on.

Cookies => Disable Cookies => Disable All Cookies

Solved my problem in Django 1.9.

Leave a comment