mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
Add workflows as a licensed feature, add mixin for workflow and activity stream license enforcement on views, update mixins to consistently come before base classes.
This commit is contained in:
@@ -296,7 +296,7 @@ class ParentMixin(object):
|
||||
raise PermissionDenied()
|
||||
|
||||
|
||||
class SubListAPIView(ListAPIView, ParentMixin):
|
||||
class SubListAPIView(ParentMixin, ListAPIView):
|
||||
# Base class for a read-only sublist view.
|
||||
|
||||
# Subclasses should define at least:
|
||||
@@ -501,7 +501,7 @@ class DeleteLastUnattachLabelMixin(object):
|
||||
return res
|
||||
|
||||
|
||||
class SubDetailAPIView(generics.RetrieveAPIView, GenericAPIView, ParentMixin):
|
||||
class SubDetailAPIView(ParentMixin, generics.RetrieveAPIView, GenericAPIView):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user