Skip to content

Commit

Permalink
use getlist for a list of params
Browse files Browse the repository at this point in the history
  • Loading branch information
hblankenship committed Jan 10, 2025
1 parent 600eccc commit 948a4e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dojo/api_v2/prefetch/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class PrefetchListMixin(ListModelMixin):
def list(self, request, *args, **kwargs):
prefetch_params = request.GET.get("prefetch", "").split(",")
prefetch_params = request.GET.getlist("prefetch")
prefetcher = _Prefetcher()

# Apply the same operations as the standard list method defined in the
Expand All @@ -30,7 +30,7 @@ def list(self, request, *args, **kwargs):

class PrefetchRetrieveMixin(RetrieveModelMixin):
def retrieve(self, request, *args, **kwargs):
prefetch_params = request.GET.get("prefetch", "").split(",")
prefetch_params = request.GET.getlist("prefetch")
prefetcher = _Prefetcher()

entry = self.get_object()
Expand Down

0 comments on commit 948a4e8

Please sign in to comment.