Skip to content

Fix accessing view queryset property in api/permissions.py

jr-garnier requested to merge fix_api_permissions_queryset_property_access into dev

Fixes an error 500 raised when accessing certain views of the API (such as /api/switchs/ports-config):

Do not evaluate the `.queryset` attribute directly, as the result will be cached and reused between requests. Use `.all()` or `.get_queryset()` instead.

Merge request reports