mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 04:31:21 -03:30
use explicit class in super to keep the view inheritable
This commit is contained in:
parent
3d05493c54
commit
634f7be692
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user