-
-
Save codingjoe/32d2a254c176ed7f74a1afcbad12bc8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/django_select2/__init__.py b/django_select2/__init__.py | |
index ccf8c5d..d93df5a 100644 | |
--- a/django_select2/__init__.py | |
+++ b/django_select2/__init__.py | |
@@ -2,7 +2,7 @@ | |
""" | |
This is a Django_ integration of Select2_. | |
-The app includes Select2 driven Django Widgets and Form Fields. | |
+The application includes Select2 driven Django Widgets and Form Fields. | |
.. _Django: https://www.djangoproject.com/ | |
.. _Select2: http://ivaynberg.github.com/select2/ | |
diff --git a/django_select2/forms.py b/django_select2/forms.py | |
index 86edafc..579ceef 100644 | |
--- a/django_select2/forms.py | |
+++ b/django_select2/forms.py | |
@@ -184,12 +184,12 @@ class HeavySelect2Mixin(object): | |
Args: | |
data_view (str): URL pattern name | |
data_url (str): URL | |
- dependent_fields (Dict[str:str]): Dictionary of dependent parent fields. | |
+ dependent_fields (dict): Dictionary of dependent parent fields. | |
The value of the dependent field will be passed as to :func:`.filter_queryset`. | |
It can be used to further restrict the search results. For example, a city | |
widget could be dependent on a country. | |
Key is a name of a field in a form. | |
- Value is a name of a field in a model (used in queryset). | |
+ Value is a name of a field in a model (used in `queryset`). | |
""" | |
self.data_view = kwargs.pop('data_view', None) | |
self.data_url = kwargs.pop('data_url', None) | |
@@ -332,7 +332,7 @@ class ModelSelect2Mixin(object): | |
Args: | |
model (django.db.models.Model): Model to select choices from. | |
- queryset (django.db.models.QuerySet): QuerySet to select choices from. | |
+ queryset (django.db.models.query.QuerySet): QuerySet to select choices from. | |
search_fields (list): List of model lookup strings. | |
max_results (int): Max. JsonResponse view page size. | |
@@ -371,7 +371,7 @@ class ModelSelect2Mixin(object): | |
Args: | |
term (str): Search term | |
- queryset (django.db.models.QuerySet): QuerySet to select choices from. | |
+ queryset (django.db.models.query,.QuerySet): QuerySet to select choices from. | |
**dependent_fields: Dependent fields and their values. If you want to inherit | |
from ModelSelect2Mixin and later call to this method, be sure to pop | |
from kwargs everything if it is not a dependent field. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment