aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'rest_framework/views.py')
-rw-r--r--rest_framework/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/rest_framework/views.py b/rest_framework/views.py
index e8bd9f50..6348ca88 100644
--- a/rest_framework/views.py
+++ b/rest_framework/views.py
@@ -80,6 +80,8 @@ class APIView(View):
self.check_permissions(cloned_request)
# TODO: find right placement - APIView does not have get_serializer
+ if not hasattr(self, 'get_serializer'):
+ continue
serializer = self.get_serializer()
if serializer is not None:
field_name_types = {}