use explicit class in super to keep the view inheritable

This commit is contained in:
Wayne Witzel III 2016-03-31 10:23:25 -04:00
parent 3d05493c54
commit 634f7be692

View File

@ -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