Skip to content

Commit ffe9162

Browse files
committed
Add documentation for new request argument
1 parent 66d2051 commit ffe9162

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

django_select2/forms.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ def filter_queryset(self, request, term, queryset=None, **dependent_fields):
372372
Return QuerySet filtered by search_fields matching the passed term.
373373
374374
Args:
375+
request (django.http.request.HttpRequest): The request is being passed from
376+
the JSON view and can be used to dynamically alter the response queryset.
375377
term (str): Search term
376378
queryset (django.db.models.query.QuerySet): QuerySet to select choices from.
377379
**dependent_fields: Dependent fields and their values. If you want to inherit

0 commit comments

Comments
 (0)