Project

Profile

Help

Issue #8438

closed

Allow plugins to unset attribute in NamedModelViewSet

Added by awcrosby over 3 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Today if a ViewSet sets the NamedModelViewSet queryset_filtering_required_permission the plugin must use the attribute as-is or replace it and must use it. Since this is an optional attribute, pulpcore should support a plugin unsetting this attribute via setting to None, which is checked here: https://github.com/pulp/pulpcore/blob/master/pulpcore/app/viewsets/base.py#L331

Also available in: Atom PDF