mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 18:09:59 +03:00
Conceptual design for strong attributes in APIView
This commit is contained in:
parent
119dff7a06
commit
c2a17ab6a3
|
@ -14,6 +14,14 @@ from rest_framework.utils.formatting import get_view_name, get_view_description
|
||||||
|
|
||||||
|
|
||||||
class APIView(View):
|
class APIView(View):
|
||||||
|
__metaclass__ = ValidatorMeta
|
||||||
|
valid_attributes = set(('settings', 'renderer_classes', 'parser_classes',
|
||||||
|
'authentication_classes', 'throttle_classes',
|
||||||
|
'permission_classes', 'content_negotiation_class',
|
||||||
|
'allowed_methods', 'default_response_headers',
|
||||||
|
'as_view',
|
||||||
|
))
|
||||||
|
|
||||||
settings = api_settings
|
settings = api_settings
|
||||||
|
|
||||||
renderer_classes = api_settings.DEFAULT_RENDERER_CLASSES
|
renderer_classes = api_settings.DEFAULT_RENDERER_CLASSES
|
||||||
|
|
Loading…
Reference in New Issue
Block a user