Skip to content

Cherry picks #3184

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

Merged
merged 2 commits into from
Jul 28, 2015
Merged

Cherry picks #3184

merged 2 commits into from
Jul 28, 2015

Conversation

damycra
Copy link

@damycra damycra commented Jul 24, 2015

Upgrade guardian support to 1.3. #3165

Is it possible to port this fix in time for 2.4.7? Apologies if this is not the correct procedure, or if this is already in hand.

Thanks for all the hard work!

Upgrade guardian support to 1.3. encode#3165
@tomchristie
Copy link
Member

@xordoquy Do we want to support a 2.4.7? You're the one having to deal with those releases ATM, so kinda up to how you feel about if they're worth the effort right now or now (If it was just me I'd be writing them off)

if guardian.VERSION >= (1, 3):
# Maintain behavior compatibility with versions prior to 1.3
extra = {'accept_global_perms': False}
return guardian.shortcuts.get_objects_for_user(user, permission, queryset, **extra)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticed that this will break for version prior to 1.3 (extra won't be defined)
Resolved in master just now but your PR would also need to be updated too.

@damycra
Copy link
Author

damycra commented Jul 28, 2015

Thanks for the heads-up, that should learn me for cherry picking a commit without fully checking ;-)

@tomchristie
Copy link
Member

I'll merge this in, tho keep in mind that we don't yet have any commitment on a 2.4.7 release.

tomchristie added a commit that referenced this pull request Jul 28, 2015
@tomchristie tomchristie merged commit 743e757 into encode:version-2.4.x Jul 28, 2015
@xordoquy
Copy link
Collaborator

Ping me next week. I'll try to get the next 3.2 this week and then I'll be able to do one 2.4 after that.

@damycra
Copy link
Author

damycra commented Aug 5, 2015

Hi Xavier,
Ping @xordoquy! Please let me know if there is anything I can do to help with this. Thanks, Steven

@tomchristie
Copy link
Member

In the interim you can of course override the filter class and configure REST framework to use your custom (fixed) filter.

@xordoquy
Copy link
Collaborator

2.4.8 is out - I messed up with 2.4.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants