Skip to content
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

Feature/du584 replace perms codenames resolver #587

Conversation

zzgvh
Copy link
Contributor

@zzgvh zzgvh commented May 27, 2014

This won't work in Django 1.5. But we also need this fix to be able to run RSR with 1.6.

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().
@adriancollier adriancollier modified the milestone: 2.3.8 Xylocarp Jun 3, 2014
…ce_perms_codenames_resolver

Conflicts:
	akvo/rsr/admin.py
KasperBrandt added a commit that referenced this pull request Jun 4, 2014
…es_resolver

[#584] Replace deprecated perms codenames resolver methods
@KasperBrandt KasperBrandt merged commit 130f572 into feature/django-upgrade Jun 4, 2014
@osg74 osg74 deleted the feature/du584_replace_perms_codenames_resolver branch June 10, 2014 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants