jazzband / django-authority

A Django app that provides generic per-object-permissions for Django's auth app and helpers to create custom permission checks.
http://django-authority.readthedocs.org
BSD 3-Clause "New" or "Revised" License
292 stars 57 forks source link

Fix edit permission action #29

Closed gthb closed 10 years ago

gthb commented 10 years ago

Fixes two problems in edit_permission:

  1. it didn't actually do anything, since Django 1.2 it seems, because the submit name _save in POST data specifically tells Django admin not to invoke actions.
  2. form validation errors were completely invisible; now at least they are shown (not very nicely) with message_user.