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

Add Permission classes to Views #16

Closed
Brobin opened this issue Oct 13, 2015 · 2 comments
Closed

Add Permission classes to Views #16

Brobin opened this issue Oct 13, 2015 · 2 comments

Comments

@Brobin
Copy link
Owner

Brobin commented Oct 13, 2015

Add default authentication to views.

Example for viewset, modelviewset, apiview

from rest_framework import permissions

class SomeViewSet(SomeViewType):
    permission_classes = (permissions.SomePermission,)

Example for function based

@permission_classes(permissions.SomePermission,)
def some_veiw():
    ...
@Brobin
Copy link
Owner Author

Brobin commented Oct 13, 2015

Need to define what the defaults should be (if any) and what the command syntax will be.

@Brobin Brobin added this to the 1.0.0 Release milestone Oct 14, 2015
@Brobin Brobin added the feature label Oct 14, 2015
@Brobin
Copy link
Owner Author

Brobin commented Oct 21, 2015

Decided this isn't something we need right away. Generators gives you a starting point, not a production ready API.

@Brobin Brobin closed this as completed Oct 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant