From ffe91627d8befbf6fdf8798cbda572b4c6c3cced Mon Sep 17 00:00:00 2001 From: Johannes Hoppe Date: Wed, 13 Mar 2019 15:06:59 +0100 Subject: [PATCH] Add documentation for new request argument --- django_select2/forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django_select2/forms.py b/django_select2/forms.py index 9aff9bc..75b2956 100644 --- a/django_select2/forms.py +++ b/django_select2/forms.py @@ -372,6 +372,8 @@ class ModelSelect2Mixin: Return QuerySet filtered by search_fields matching the passed term. Args: + request (django.http.request.HttpRequest): The request is being passed from + the JSON view and can be used to dynamically alter the response queryset. term (str): Search term queryset (django.db.models.query.QuerySet): QuerySet to select choices from. **dependent_fields: Dependent fields and their values. If you want to inherit