rest_flex_fields2.views

Flex-fields view mixin and model view set.

Provides FlexFieldsMixin for controlling per-action expansion permissions and the ready-to-use FlexFieldsModelViewSet that combines the mixin with ModelViewSet from Django REST Framework.

Classes

FlexFieldsMixin

View mixin that restricts which fields may be expanded on list actions.

FlexFieldsModelViewSet

Convenience view set combining FlexFieldsMixin with ModelViewSet.