From 634f7be69203d250cd549196ed3382a74041d101 Mon Sep 17 00:00:00 2001 From: Wayne Witzel III Date: Thu, 31 Mar 2016 10:23:25 -0400 Subject: [PATCH] use explicit class in super to keep the view inheritable --- awx/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/views.py b/awx/api/views.py index 613080714d..8189a046ad 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -1087,7 +1087,7 @@ class UserRolesList(SubListCreateAttachDetachAPIView): if not sub_id: data = dict(msg='Role "id" field is missing') return Response(data, status=status.HTTP_400_BAD_REQUEST) - return super(type(self), self).post(request, *args, **kwargs) + return super(UserRolesList, self).post(request, *args, **kwargs) def check_parent_access(self, parent=None): # We hide roles that shouldn't be seen in our queryset