Enable dynamic queryset resolution for generic views #10739
Labels
status: accepted
This issue has been accepted for implementation
topic: plugins
Relates to the plugins framework
type: feature
Introduction of new functionality to the application
Milestone
NetBox version
v3.3.5
Feature type
New functionality
Proposed functionality
Add a
get_queryset()
method to the base generic views to support dynamic resolution of a view's queryset. This method will accept arequest
parameter to enable responding to different request conditions and parameters, similar to Django's own generic views.This method will be called by all views to determine the queryset. To maintain backward compatibility, this method will by default simply return the
queryset
class attribute.Use case
This change enables the execution of custom logic based on the incoming request when determining the starting queryset for a review.
Database changes
No response
External dependencies
No response
The text was updated successfully, but these errors were encountered: