-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace get_(add|change|delete)_permission model _meta methods #584
Comments
akvo.utils.get_rsr_limited_change_permission() can also be replaced with get_permission_codename() |
Django 1.6 deprecates Model._meta.get_add_permission(), .get_change_permission() and .get_delete_permission(). Instead django.contrib.auth.get_permission_codename() is provided. Replace the deprecated methods with get_permission_codename(). Remove akvo.utils.get_rsr_limited_change_permission() and replace uses of it with get_permission_codename().
This fix requires Django 1.6. Also django-counter needs fixing to work in 1.6 blocking testing before that is done too. |
…ce_perms_codenames_resolver Conflicts: akvo/rsr/admin.py
…es_resolver [#584] Replace deprecated perms codenames resolver methods
Merged in #587 |
@rumca Test plan: "invisible" change. The code changes are in the admin and the end result should be that everything works as before in terms of who is allowed to see and edit what. |
The get_(add|change|delete)_permission model _meta methods are being deprecated. Use django.contrib.auth.get_permission_codename instead.
The text was updated successfully, but these errors were encountered: