-
Notifications
You must be signed in to change notification settings - Fork 574
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
Update for DRF 3.0 #16
Conversation
@tomchristie — This is almost working. I have one issue with the
i.e. the permission class is not returning before the individual object check. In Beyond that I just need to go over and remove any bits of old cruft. If anything jumps out to you let me know. |
Updating to 3.0.1 will resovle this. |
Ah, that does fix it. :) (Still not sure why Just pending your comments, if you have any. |
@@ -13,3 +13,4 @@ def has_object_permission(self, request, view, obj): | |||
|
|||
# Write permissions are only allowed to the owner of the snippet | |||
return obj.owner == request.user | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop the whitespace (just include the final newline)
Coupla minor things, otherwise ready to go. |
Updated |
Wonderful! :) |
Fixes encode/django-rest-framework#2131