Closed gthb closed 10 years ago
Is this fix still Django 1.3 compatible? We don't actually have any test coverage against the admin.
I would really love to see a test case with this pull request that demonstrates this bug. Is that something you would be able to add?
Thanks -Wes
Sorry, I can't spare the time to introduce test coverage here. This is manually verified though. It was in upgrading our codebase to use Django 1.3 that I encountered this problem, and this change got it fixed. The problem itself is described in https://code.djangoproject.com/ticket/20744 including a stack trace, but no full test setup.
We then upgraded further and are now running Django 1.5, where some further changes to django-authority
were needed (that's my other pull request here). So we run in production with a patched version of django-authority
, including these changes.
Fix a somewhat opaque TypeError failure in edit_permissions when running django-authority under Django 1.5.1, by properly delegating to superclass in creating a form field.
See https://code.djangoproject.com/ticket/20744 for detail on the Django Forms API subtlety that the superclass method works around (removing
request
fromkwargs
before passing them on to field creation).The error looks like this: