Errors when reversing admin URLs when custom ModelAdmin doesn't provide model add/change URLs
(Originally reported here)
Commit r16857 introduced a backward incompatible behavior of the admin app's master index and per-app index views.
The commit introduces changes in the template context building process that assume add and change permissions on models are always present when it is going to check for them. This fails with projects where these permissions might have been completely removed.
Type: |
Uncategorized → Bug
|
Severity: |
Normal → Release blocker
|
Resolution: |
→ worksforme
|
Status: |
new → closed
|
Resolution: |
worksforme
|
Status: |
closed → reopened
|
Summary: |
Errors when reversing admin URLs when add/change standard permissions don't exist → Errors when reversing admin URLs when custom ModelAdmin doesn't provide model add/change URLs
|
Resolution: |
→ fixed
|
Status: |
reopened → closed
|
Actually, I can't reproduce this, i.e. cant create a regression test.
Things tried:
And no NoReverseMatch exception gets triggered as originally reported here. I'm attaching the WIP patch for the tests and closing this worksforme.
I'm not going to change anything until we can reproduce the failing condition. It would be great if user kingtut that posted that comment can give us additional feedback, bonus points if he can modify the test case to fail.