v3.1.4. Manually picked changes from Issue#16 (pull request).

This commit is contained in:
AppleGrew (applegrew) 2012-11-27 10:31:40 +05:30
parent cf960fe11b
commit 913453f8ef
41 changed files with 208 additions and 156 deletions

View file

@ -74,7 +74,7 @@ The view - `Select2View`, exposed here is meant to be used with 'Heavy' fields a
"""
__version__ = "3.1.3"
__version__ = "3.1.4"
__RENDER_SELECT2_STATICS = False

View file

@ -56,8 +56,8 @@ class Select2Mixin(object):
'closeOnSelect': False,
}
"""
The options listed in this are rendered as JS map and passed to Select2 JS code.
The complete description of theses options are available in Select2_ JS' site.
The options listed here are rendered as JS map and passed to Select2 JS code.
Complete description of theses options are available in Select2_ JS' site.
.. _Select2: http://ivaynberg.github.com/select2/#documentation.
"""
@ -97,18 +97,17 @@ class Select2Mixin(object):
"""
# Making an instance specific copy
self.options = dict(self.options)
self.init_options()
select2_options = kwargs.pop('select2_options', None)
if select2_options:
for name in self.options:
val = self.options[name]
self.options[name] = select2_options.get(name, val)
for name, value in select2_options.items():
self.options[name] = value
self.init_options()
super(Select2Mixin, self).__init__(**kwargs)
def init_options(self):
"""
Sub-classes can use this to pass additional options to Select2 JS library.
Sub-classes can use this to suppress or override options passed to Select2 JS library.
Example::

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 8f7ad13244e061a8104806cdc649849b
config: 4e8fcfb0da224064e67ec5f425ec0b37
tags: fbb0d17656682115ca4d033fb2f83ba1

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View file

@ -0,0 +1,12 @@
<map id="inheritancecdbd4d640c" name="inheritancecdbd4d640c">
<area shape="poly" id="node1" href="#django_select2.widgets.HeavySelect2MultipleWidget" title="HeavySelect2MultipleWidget" alt="" coords="284,353,277,348,257,343,226,340,187,337,144,336,101,337,62,340,31,343,11,348,4,353,11,359,31,363,62,367,101,369,144,370,187,369,226,367,257,363,277,359"/>
<area shape="poly" id="node31" href="#django_select2.widgets.AutoHeavySelect2MultipleWidget" title="AutoHeavySelect2MultipleWidget" alt="" coords="412,436,404,431,382,426,346,422,302,420,252,419,202,420,158,422,122,426,100,431,92,436,100,441,122,446,158,450,202,452,252,453,302,452,346,450,382,446,404,441"/>
<area shape="poly" id="node2" href="#django_select2.widgets.HeavySelect2Mixin" title="HeavySelect2Mixin" alt="" coords="712,271,707,265,694,261,673,257,646,255,616,254,586,255,559,257,538,261,525,265,520,271,525,276,538,281,559,284,586,287,616,288,646,287,673,284,694,281,707,276"/>
<area shape="poly" id="node14" href="#django_select2.widgets.HeavySelect2Widget" title="HeavySelect2Widget" alt="" coords="776,353,771,348,756,343,733,340,703,337,671,336,638,337,609,340,585,343,570,348,565,353,570,359,585,363,609,367,638,369,671,370,703,369,733,367,756,363,771,359"/>
<area shape="poly" id="node4" href="#django_select2.widgets.MultipleSelect2HiddenInput" title="MultipleSelect2HiddenInput" alt="" coords="335,271,329,265,309,261,279,257,241,255,199,254,156,255,118,257,88,261,69,265,62,271,69,276,88,281,118,284,156,287,199,288,241,287,279,284,309,281,329,276"/>
<area shape="poly" id="node6" href="#django_select2.widgets.Select2Mixin" title="Select2Mixin" alt="" coords="774,188,770,183,760,178,745,174,726,172,704,171,682,172,663,174,648,178,638,183,634,188,638,193,648,198,663,202,682,204,704,205,726,204,745,202,760,198,770,193"/>
<area shape="poly" id="node11" href="#django_select2.widgets.Select2MultipleWidget" title="Select2MultipleWidget" alt="" coords="962,271,957,265,941,261,916,257,884,255,849,254,814,255,783,257,758,261,742,265,736,271,742,276,758,281,783,284,814,287,849,288,884,287,916,284,941,281,957,276"/>
<area shape="poly" id="node21" href="#django_select2.widgets.Select2Widget" title="Select2Widget" alt="" coords="1145,271,1141,265,1129,261,1112,257,1090,255,1065,254,1041,255,1019,257,1001,261,990,265,986,271,990,276,1001,281,1019,284,1041,287,1065,288,1090,287,1112,284,1129,281,1141,276"/>
<area shape="poly" id="node26" href="#django_select2.widgets.AutoHeavySelect2Widget" title="AutoHeavySelect2Widget" alt="" coords="742,436,736,431,718,426,690,422,655,420,616,419,577,420,542,422,514,426,496,431,490,436,496,441,514,446,542,450,577,452,616,453,655,452,690,450,718,446,736,441"/>
<area shape="poly" id="node27" href="#django_select2.widgets.AutoHeavySelect2Mixin" title="AutoHeavySelect2Mixin" alt="" coords="541,353,535,348,519,343,493,340,460,337,424,336,388,337,355,340,329,343,313,348,307,353,313,359,329,363,355,367,388,369,424,370,460,369,493,367,519,363,535,359"/>
</map>

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View file

@ -0,0 +1,7 @@
<map id="inheritancea008ca3d81" name="inheritancea008ca3d81">
<area shape="poly" id="node4" href="#django_select2.fields.AutoViewFieldMixin" title="AutoViewFieldMixin" alt="" coords="201,353,196,348,182,343,160,340,133,337,103,336,72,337,45,340,23,343,9,348,5,353,9,359,23,363,45,367,72,369,103,370,133,369,160,367,182,363,196,359"/>
<area shape="poly" id="node13" href="#django_select2.fields.AutoModelSelect2MultipleField" title="AutoModelSelect2MultipleField" alt="" coords="485,436,477,431,456,426,423,422,381,420,335,419,288,420,247,422,213,426,192,431,185,436,192,441,213,446,247,450,288,452,335,453,381,452,423,450,456,446,477,441"/>
<area shape="poly" id="node7" href="#django_select2.fields.HeavyModelSelect2MultipleChoiceField" title="HeavyModelSelect2MultipleChoiceField" alt="" coords="839,353,830,348,804,343,763,340,711,337,653,336,596,337,544,340,503,343,477,348,468,353,477,359,503,363,544,367,596,369,653,370,711,369,763,367,804,363,830,359"/>
<area shape="poly" id="node8" href="#django_select2.fields.HeavySelect2FieldBaseMixin" title="HeavySelect2FieldBaseMixin" alt="" coords="647,271,640,265,620,261,589,257,551,255,508,254,465,255,427,257,396,261,376,265,369,271,376,276,396,281,427,284,465,287,508,288,551,287,589,284,620,281,640,276"/>
<area shape="poly" id="node12" href="#django_select2.fields.ModelResultJsonMixin" title="ModelResultJsonMixin" alt="" coords="444,353,439,348,423,343,399,340,368,337,335,336,301,337,270,340,246,343,231,348,225,353,231,359,246,363,270,367,301,369,335,370,368,369,399,367,423,363,439,359"/>
</map>

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View file

@ -0,0 +1,11 @@
<map id="inheritanceea81e519c1" name="inheritanceea81e519c1">
<area shape="poly" id="node1" href="#django_select2.fields.AutoSelect2MultipleField" title="AutoSelect2MultipleField" alt="" coords="434,353,428,348,411,343,383,340,349,337,311,336,273,337,238,340,211,343,193,348,187,353,193,359,211,363,238,367,273,369,311,370,349,369,383,367,411,363,428,359"/>
<area shape="poly" id="node2" href="#django_select2.fields.AutoViewFieldMixin" title="AutoViewFieldMixin" alt="" coords="543,271,539,265,525,261,503,257,476,255,445,254,415,255,388,257,366,261,352,265,347,271,352,276,366,281,388,284,415,287,445,288,476,287,503,284,525,281,539,276"/>
<area shape="poly" id="node17" href="#django_select2.fields.AutoSelect2Field" title="AutoSelect2Field" alt="" coords="659,353,655,348,642,343,622,340,597,337,569,336,542,337,517,340,497,343,484,348,480,353,484,359,497,363,517,367,542,369,569,370,597,369,622,367,642,363,655,359"/>
<area shape="poly" id="node4" href="#django_select2.fields.HeavySelect2MultipleChoiceField" title="HeavySelect2MultipleChoiceField" alt="" coords="323,271,316,265,293,261,258,257,213,255,164,254,115,255,70,257,35,261,12,265,5,271,12,276,35,281,70,284,115,287,164,288,213,287,258,284,293,281,316,276"/>
<area shape="poly" id="node9" href="#django_select2.fields.HeavyChoiceField" title="HeavyChoiceField" alt="" coords="496,105,492,100,479,95,458,92,433,89,404,88,375,89,350,92,329,95,316,100,312,105,316,111,329,115,350,119,375,121,404,122,433,121,458,119,479,115,492,111"/>
<area shape="poly" id="node7" href="#django_select2.fields.ChoiceMixin" title="ChoiceMixin" alt="" coords="535,23,532,17,522,13,507,9,489,7,468,6,447,7,429,9,414,13,404,17,401,23,404,28,414,33,429,36,447,39,468,40,489,39,507,36,522,33,532,28"/>
<area shape="poly" id="node8" href="#django_select2.fields.HeavyMultipleChoiceField" title="HeavyMultipleChoiceField" alt="" coords="298,188,292,183,274,178,246,174,211,172,172,171,133,172,98,174,70,178,52,183,46,188,52,193,70,198,98,202,133,204,172,205,211,204,246,202,274,198,292,193"/>
<area shape="poly" id="node11" href="#django_select2.fields.HeavySelect2ChoiceField" title="HeavySelect2ChoiceField" alt="" coords="819,271,813,265,795,261,767,257,732,255,693,254,655,255,620,257,592,261,574,265,568,271,574,276,592,281,620,284,655,287,693,288,732,287,767,284,795,281,813,276"/>
<area shape="poly" id="node12" href="#django_select2.fields.HeavySelect2FieldBaseMixin" title="HeavySelect2FieldBaseMixin" alt="" coords="632,188,625,183,605,178,575,174,536,172,493,171,451,172,412,174,381,178,362,183,355,188,362,193,381,198,412,202,451,204,493,205,536,204,575,202,605,198,625,193"/>
</map>

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View file

@ -0,0 +1,4 @@
<map id="inheritance2f6096d7d4" name="inheritance2f6096d7d4">
<area shape="poly" id="node1" href="#django_select2.fields.ModelSelect2Field" title="ModelSelect2Field" alt="" coords="195,271,191,265,177,261,156,257,129,255,100,254,71,255,44,257,23,261,9,265,5,271,9,276,23,281,44,284,71,287,100,288,129,287,156,284,177,281,191,276"/>
<area shape="poly" id="node5" href="#django_select2.fields.ModelSelect2MultipleField" title="ModelSelect2MultipleField" alt="" coords="474,353,468,348,450,343,421,340,385,337,345,336,305,337,269,340,241,343,222,348,216,353,222,359,241,363,269,367,305,369,345,370,385,369,421,367,450,363,468,359"/>
</map>

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View file

@ -0,0 +1,7 @@
<map id="inheritance0bde21cdb9" name="inheritance0bde21cdb9">
<area shape="poly" id="node4" href="#django_select2.fields.HeavyModelSelect2ChoiceField" title="HeavyModelSelect2ChoiceField" alt="" coords="772,271,764,265,743,261,709,257,667,255,620,254,573,255,531,257,497,261,476,265,468,271,476,276,497,281,531,284,573,287,620,288,667,287,709,284,743,281,764,276"/>
<area shape="poly" id="node10" href="#django_select2.fields.AutoModelSelect2Field" title="AutoModelSelect2Field" alt="" coords="451,353,445,348,428,343,403,340,371,337,335,336,299,337,267,340,241,343,224,348,219,353,224,359,241,363,267,367,299,369,335,370,371,369,403,367,428,363,445,359"/>
<area shape="poly" id="node5" href="#django_select2.fields.HeavySelect2FieldBaseMixin" title="HeavySelect2FieldBaseMixin" alt="" coords="631,188,624,183,604,178,573,174,535,172,492,171,449,172,411,174,380,178,360,183,353,188,360,193,380,198,411,202,449,204,492,205,535,204,573,202,604,198,624,193"/>
<area shape="poly" id="node8" href="#django_select2.fields.AutoViewFieldMixin" title="AutoViewFieldMixin" alt="" coords="201,271,196,265,182,261,160,257,133,255,103,254,72,255,45,257,23,261,9,265,5,271,9,276,23,281,45,284,72,287,103,288,133,287,160,284,182,281,196,276"/>
<area shape="poly" id="node11" href="#django_select2.fields.ModelResultJsonMixin" title="ModelResultJsonMixin" alt="" coords="444,271,439,265,423,261,399,257,368,255,335,254,301,255,270,257,246,261,231,265,225,271,231,276,246,281,270,284,301,287,335,288,368,287,399,284,423,281,439,276"/>
</map>

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -0,0 +1,4 @@
<map id="inheritance25da809ef3" name="inheritance25da809ef3">
<area shape="poly" id="node2" href="#django_select2.fields.Select2MultipleChoiceField" title="Select2MultipleChoiceField" alt="" coords="270,271,264,265,245,261,215,257,178,255,137,254,96,255,59,257,30,261,11,265,4,271,11,276,30,281,59,284,96,287,137,288,178,287,215,284,245,281,264,276"/>
<area shape="poly" id="node7" href="#django_select2.fields.Select2ChoiceField" title="Select2ChoiceField" alt="" coords="459,188,454,183,440,178,418,174,391,172,360,171,329,172,302,174,280,178,266,183,261,188,266,193,280,198,302,202,329,204,360,205,391,204,418,202,440,198,454,193"/>
</map>

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View file

@ -0,0 +1,5 @@
<map id="inheritance4f5879fafb" name="inheritance4f5879fafb">
<area shape="poly" id="node4" href="#django_select2.fields.HeavyModelSelect2ChoiceField" title="HeavyModelSelect2ChoiceField" alt="" coords="454,271,447,265,425,261,392,257,350,255,303,254,256,255,213,257,180,261,158,265,151,271,158,276,180,281,213,284,256,287,303,288,350,287,392,284,425,281,447,276"/>
<area shape="poly" id="node5" href="#django_select2.fields.HeavySelect2FieldBaseMixin" title="HeavySelect2FieldBaseMixin" alt="" coords="281,188,274,183,255,178,224,174,185,172,143,171,100,172,61,174,31,178,11,183,4,188,11,193,31,198,61,202,100,204,143,205,185,204,224,202,255,198,274,193"/>
<area shape="poly" id="node9" href="#django_select2.fields.HeavyModelSelect2MultipleChoiceField" title="HeavyModelSelect2MultipleChoiceField" alt="" coords="544,353,535,348,509,343,468,340,416,337,359,336,301,337,249,340,208,343,182,348,173,353,182,359,208,363,249,367,301,369,359,370,416,369,468,367,509,363,535,359"/>
</map>

View file

@ -7,7 +7,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>django_select2.fields &mdash; Django-Select2 3.1.3 documentation</title>
<title>django_select2.fields &mdash; Django-Select2 3.1.4 documentation</title>
<link rel="stylesheet" href="../../_static/nature.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
@ -15,7 +15,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '3.1.3',
VERSION: '3.1.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
@ -24,7 +24,7 @@
<script type="text/javascript" src="../../_static/jquery.js"></script>
<script type="text/javascript" src="../../_static/underscore.js"></script>
<script type="text/javascript" src="../../_static/doctools.js"></script>
<link rel="top" title="Django-Select2 3.1.3 documentation" href="../../index.html" />
<link rel="top" title="Django-Select2 3.1.4 documentation" href="../../index.html" />
<link rel="up" title="Module code" href="../index.html" />
</head>
<body>
@ -37,7 +37,7 @@
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../../index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="../../index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
<li><a href="../index.html" accesskey="U">Module code</a> &raquo;</li>
</ul>
</div>
@ -725,7 +725,7 @@
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../../index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="../../index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
<li><a href="../index.html" >Module code</a> &raquo;</li>
</ul>
</div>

View file

@ -7,7 +7,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>django_select2.util &mdash; Django-Select2 3.1.3 documentation</title>
<title>django_select2.util &mdash; Django-Select2 3.1.4 documentation</title>
<link rel="stylesheet" href="../../_static/nature.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
@ -15,7 +15,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '3.1.3',
VERSION: '3.1.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
@ -24,7 +24,7 @@
<script type="text/javascript" src="../../_static/jquery.js"></script>
<script type="text/javascript" src="../../_static/underscore.js"></script>
<script type="text/javascript" src="../../_static/doctools.js"></script>
<link rel="top" title="Django-Select2 3.1.3 documentation" href="../../index.html" />
<link rel="top" title="Django-Select2 3.1.4 documentation" href="../../index.html" />
<link rel="up" title="Module code" href="../index.html" />
</head>
<body>
@ -37,7 +37,7 @@
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../../index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="../../index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
<li><a href="../index.html" accesskey="U">Module code</a> &raquo;</li>
</ul>
</div>
@ -353,7 +353,7 @@
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../../index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="../../index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
<li><a href="../index.html" >Module code</a> &raquo;</li>
</ul>
</div>

View file

@ -7,7 +7,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>django_select2.views &mdash; Django-Select2 3.1.3 documentation</title>
<title>django_select2.views &mdash; Django-Select2 3.1.4 documentation</title>
<link rel="stylesheet" href="../../_static/nature.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
@ -15,7 +15,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '3.1.3',
VERSION: '3.1.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
@ -24,7 +24,7 @@
<script type="text/javascript" src="../../_static/jquery.js"></script>
<script type="text/javascript" src="../../_static/underscore.js"></script>
<script type="text/javascript" src="../../_static/doctools.js"></script>
<link rel="top" title="Django-Select2 3.1.3 documentation" href="../../index.html" />
<link rel="top" title="Django-Select2 3.1.4 documentation" href="../../index.html" />
<link rel="up" title="Module code" href="../index.html" />
</head>
<body>
@ -37,7 +37,7 @@
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../../index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="../../index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
<li><a href="../index.html" accesskey="U">Module code</a> &raquo;</li>
</ul>
</div>
@ -270,7 +270,7 @@
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../../index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="../../index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
<li><a href="../index.html" >Module code</a> &raquo;</li>
</ul>
</div>

View file

@ -7,7 +7,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>django_select2.widgets &mdash; Django-Select2 3.1.3 documentation</title>
<title>django_select2.widgets &mdash; Django-Select2 3.1.4 documentation</title>
<link rel="stylesheet" href="../../_static/nature.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
@ -15,7 +15,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '3.1.3',
VERSION: '3.1.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
@ -24,7 +24,7 @@
<script type="text/javascript" src="../../_static/jquery.js"></script>
<script type="text/javascript" src="../../_static/underscore.js"></script>
<script type="text/javascript" src="../../_static/doctools.js"></script>
<link rel="top" title="Django-Select2 3.1.3 documentation" href="../../index.html" />
<link rel="top" title="Django-Select2 3.1.4 documentation" href="../../index.html" />
<link rel="up" title="Module code" href="../index.html" />
</head>
<body>
@ -37,7 +37,7 @@
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../../index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="../../index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
<li><a href="../index.html" accesskey="U">Module code</a> &raquo;</li>
</ul>
</div>
@ -592,7 +592,7 @@
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../../index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="../../index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
<li><a href="../index.html" >Module code</a> &raquo;</li>
</ul>
</div>

View file

@ -7,7 +7,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Overview: module code &mdash; Django-Select2 3.1.3 documentation</title>
<title>Overview: module code &mdash; Django-Select2 3.1.4 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
@ -15,7 +15,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '3.1.3',
VERSION: '3.1.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
@ -24,7 +24,7 @@
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<link rel="top" title="Django-Select2 3.1.3 documentation" href="../index.html" />
<link rel="top" title="Django-Select2 3.1.4 documentation" href="../index.html" />
</head>
<body>
<div class="related">
@ -36,7 +36,7 @@
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="../index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
</ul>
</div>
@ -83,7 +83,7 @@
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="../index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">

View file

@ -9,7 +9,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Index &mdash; Django-Select2 3.1.3 documentation</title>
<title>Index &mdash; Django-Select2 3.1.4 documentation</title>
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
@ -17,7 +17,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '3.1.3',
VERSION: '3.1.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
@ -26,7 +26,7 @@
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="Django-Select2 3.1.3 documentation" href="index.html" />
<link rel="top" title="Django-Select2 3.1.4 documentation" href="index.html" />
</head>
<body>
<div class="related">
@ -38,7 +38,7 @@
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
</ul>
</div>
@ -643,7 +643,7 @@
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">

View file

@ -7,7 +7,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Get Started &mdash; Django-Select2 3.1.3 documentation</title>
<title>Get Started &mdash; Django-Select2 3.1.4 documentation</title>
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
@ -15,7 +15,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '3.1.3',
VERSION: '3.1.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
@ -24,7 +24,7 @@
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="Django-Select2 3.1.3 documentation" href="index.html" />
<link rel="top" title="Django-Select2 3.1.4 documentation" href="index.html" />
<link rel="next" title="API Reference" href="reference.html" />
<link rel="prev" title="All Contents" href="index.html" />
</head>
@ -44,7 +44,7 @@
<li class="right" >
<a href="index.html" title="All Contents"
accesskey="P">previous</a> |</li>
<li><a href="index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
</ul>
</div>
@ -218,7 +218,7 @@ your ease.</p>
<li class="right" >
<a href="index.html" title="All Contents"
>previous</a> |</li>
<li><a href="index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">

View file

@ -7,7 +7,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>All Contents &mdash; Django-Select2 3.1.3 documentation</title>
<title>All Contents &mdash; Django-Select2 3.1.4 documentation</title>
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
@ -15,7 +15,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '3.1.3',
VERSION: '3.1.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
@ -24,7 +24,7 @@
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="Django-Select2 3.1.3 documentation" href="#" />
<link rel="top" title="Django-Select2 3.1.4 documentation" href="#" />
<link rel="next" title="Get Started" href="get_started.html" />
</head>
<body>
@ -40,7 +40,7 @@
<li class="right" >
<a href="get_started.html" title="Get Started"
accesskey="N">next</a> |</li>
<li><a href="#">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="#">Django-Select2 3.1.4 documentation</a> &raquo;</li>
</ul>
</div>
@ -153,7 +153,7 @@
<li class="right" >
<a href="get_started.html" title="Get Started"
>next</a> |</li>
<li><a href="#">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="#">Django-Select2 3.1.4 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">

Binary file not shown.

View file

@ -7,7 +7,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Python Module Index &mdash; Django-Select2 3.1.3 documentation</title>
<title>Python Module Index &mdash; Django-Select2 3.1.4 documentation</title>
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
@ -15,7 +15,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '3.1.3',
VERSION: '3.1.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
@ -24,7 +24,7 @@
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="Django-Select2 3.1.3 documentation" href="index.html" />
<link rel="top" title="Django-Select2 3.1.4 documentation" href="index.html" />
@ -39,7 +39,7 @@
<li class="right" >
<a href="#" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
</ul>
</div>
@ -119,7 +119,7 @@
<li class="right" >
<a href="#" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">

View file

@ -7,7 +7,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Fields &mdash; Django-Select2 3.1.3 documentation</title>
<title>Fields &mdash; Django-Select2 3.1.4 documentation</title>
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
@ -15,7 +15,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '3.1.3',
VERSION: '3.1.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
@ -24,7 +24,7 @@
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="Django-Select2 3.1.3 documentation" href="index.html" />
<link rel="top" title="Django-Select2 3.1.4 documentation" href="index.html" />
<link rel="up" title="API Reference" href="reference.html" />
<link rel="next" title="Views" href="ref_views.html" />
<link rel="prev" title="Widgets" href="ref_widgets.html" />
@ -45,7 +45,7 @@
<li class="right" >
<a href="ref_widgets.html" title="Widgets"
accesskey="P">previous</a> |</li>
<li><a href="index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
<li><a href="reference.html" accesskey="U">API Reference</a> &raquo;</li>
</ul>
</div>
@ -60,59 +60,59 @@
<div class="section" id="class-diagrams">
<h2>Class Diagrams<a class="headerlink" href="#class-diagrams" title="Permalink to this headline"></a></h2>
<p class="graphviz">
<img src="_images/inheritance-7cb721efe98746431d2da0d92fec400d9ec3890d.png" alt="Inheritance diagram of django_select2.fields.Select2ChoiceField, django_select2.fields.Select2MultipleChoiceField" usemap="#inheritance25da809ef3" class="inheritance"/>
<img src="_images/inheritance-e11aca9caca35a5725f3ca8f661564b1a1b07910.png" alt="Inheritance diagram of django_select2.fields.Select2ChoiceField, django_select2.fields.Select2MultipleChoiceField" usemap="#inheritance25da809ef3" class="inheritance"/>
<map id="inheritance25da809ef3" name="inheritance25da809ef3">
<area shape="poly" id="node8" href="#django_select2.fields.Select2MultipleChoiceField" title="Select2MultipleChoiceField" alt="" coords="270,271,264,265,245,261,215,257,178,255,137,254,96,255,59,257,30,261,11,265,4,271,11,276,30,281,59,284,96,287,137,288,178,287,215,284,245,281,264,276"/>
<area shape="poly" id="node6" href="#django_select2.fields.Select2ChoiceField" title="Select2ChoiceField" alt="" coords="459,188,454,183,440,178,418,174,391,172,360,171,329,172,302,174,280,178,266,183,261,188,266,193,280,198,302,202,329,204,360,205,391,204,418,202,440,198,454,193"/>
<area shape="poly" id="node2" href="#django_select2.fields.Select2MultipleChoiceField" title="Select2MultipleChoiceField" alt="" coords="270,271,264,265,245,261,215,257,178,255,137,254,96,255,59,257,30,261,11,265,4,271,11,276,30,281,59,284,96,287,137,288,178,287,215,284,245,281,264,276"/>
<area shape="poly" id="node7" href="#django_select2.fields.Select2ChoiceField" title="Select2ChoiceField" alt="" coords="459,188,454,183,440,178,418,174,391,172,360,171,329,172,302,174,280,178,266,183,261,188,266,193,280,198,302,202,329,204,360,205,391,204,418,202,440,198,454,193"/>
</map>
</p>
<p class="graphviz">
<img src="_images/inheritance-983f512c924d60cb710ca0dc898a86887138f8e9.png" alt="Inheritance diagram of django_select2.fields.ModelSelect2Field, django_select2.fields.ModelSelect2MultipleField" usemap="#inheritance2f6096d7d4" class="inheritance"/>
<img src="_images/inheritance-8f17d61a77d03c5938c6143e9355f9be775f4562.png" alt="Inheritance diagram of django_select2.fields.ModelSelect2Field, django_select2.fields.ModelSelect2MultipleField" usemap="#inheritance2f6096d7d4" class="inheritance"/>
<map id="inheritance2f6096d7d4" name="inheritance2f6096d7d4">
<area shape="poly" id="node14" href="#django_select2.fields.ModelSelect2Field" title="ModelSelect2Field" alt="" coords="195,271,191,265,177,261,156,257,129,255,100,254,71,255,44,257,23,261,9,265,5,271,9,276,23,281,44,284,71,287,100,288,129,287,156,284,177,281,191,276"/>
<area shape="poly" id="node4" href="#django_select2.fields.ModelSelect2MultipleField" title="ModelSelect2MultipleField" alt="" coords="474,353,468,348,450,343,421,340,385,337,345,336,305,337,269,340,241,343,222,348,216,353,222,359,241,363,269,367,305,369,345,370,385,369,421,367,450,363,468,359"/>
<area shape="poly" id="node1" href="#django_select2.fields.ModelSelect2Field" title="ModelSelect2Field" alt="" coords="195,271,191,265,177,261,156,257,129,255,100,254,71,255,44,257,23,261,9,265,5,271,9,276,23,281,44,284,71,287,100,288,129,287,156,284,177,281,191,276"/>
<area shape="poly" id="node5" href="#django_select2.fields.ModelSelect2MultipleField" title="ModelSelect2MultipleField" alt="" coords="474,353,468,348,450,343,421,340,385,337,345,336,305,337,269,340,241,343,222,348,216,353,222,359,241,363,269,367,305,369,345,370,385,369,421,367,450,363,468,359"/>
</map>
</p>
<p class="graphviz">
<img src="_images/inheritance-66afdd93430a8b1be49f9873b66f850c3dca7a88.png" alt="Inheritance diagram of django_select2.fields.HeavyModelSelect2ChoiceField, django_select2.fields.HeavyModelSelect2MultipleChoiceField" usemap="#inheritance4f5879fafb" class="inheritance"/>
<img src="_images/inheritance-efddeec0d1c4b67abf338fa803bd519df2097c5f.png" alt="Inheritance diagram of django_select2.fields.HeavyModelSelect2ChoiceField, django_select2.fields.HeavyModelSelect2MultipleChoiceField" usemap="#inheritance4f5879fafb" class="inheritance"/>
<map id="inheritance4f5879fafb" name="inheritance4f5879fafb">
<area shape="poly" id="node17" href="#django_select2.fields.HeavyModelSelect2ChoiceField" title="HeavyModelSelect2ChoiceField" alt="" coords="454,271,447,265,425,261,392,257,350,255,303,254,256,255,213,257,180,261,158,265,151,271,158,276,180,281,213,284,256,287,303,288,350,287,392,284,425,281,447,276"/>
<area shape="poly" id="node4" href="#django_select2.fields.HeavyModelSelect2MultipleChoiceField" title="HeavyModelSelect2MultipleChoiceField" alt="" coords="544,353,535,348,509,343,468,340,416,337,359,336,301,337,249,340,208,343,182,348,173,353,182,359,208,363,249,367,301,369,359,370,416,369,468,367,509,363,535,359"/>
<area shape="poly" id="node4" href="#django_select2.fields.HeavyModelSelect2ChoiceField" title="HeavyModelSelect2ChoiceField" alt="" coords="454,271,447,265,425,261,392,257,350,255,303,254,256,255,213,257,180,261,158,265,151,271,158,276,180,281,213,284,256,287,303,288,350,287,392,284,425,281,447,276"/>
<area shape="poly" id="node5" href="#django_select2.fields.HeavySelect2FieldBaseMixin" title="HeavySelect2FieldBaseMixin" alt="" coords="281,188,274,183,255,178,224,174,185,172,143,171,100,172,61,174,31,178,11,183,4,188,11,193,31,198,61,202,100,204,143,205,185,204,224,202,255,198,274,193"/>
<area shape="poly" id="node9" href="#django_select2.fields.HeavyModelSelect2MultipleChoiceField" title="HeavyModelSelect2MultipleChoiceField" alt="" coords="544,353,535,348,509,343,468,340,416,337,359,336,301,337,249,340,208,343,182,348,173,353,182,359,208,363,249,367,301,369,359,370,416,369,468,367,509,363,535,359"/>
</map>
</p>
<p class="graphviz">
<img src="_images/inheritance-aca0acaecd2f1c00f19f885dead29cd94fe098df.png" alt="Inheritance diagram of django_select2.fields.AutoSelect2Field, django_select2.fields.AutoSelect2MultipleField" usemap="#inheritanceea81e519c1" class="inheritance"/>
<img src="_images/inheritance-65ed7ad2310dd4e29851de30967ff5ed457c4a10.png" alt="Inheritance diagram of django_select2.fields.AutoSelect2Field, django_select2.fields.AutoSelect2MultipleField" usemap="#inheritanceea81e519c1" class="inheritance"/>
<map id="inheritanceea81e519c1" name="inheritanceea81e519c1">
<area shape="poly" id="node1" href="#django_select2.fields.HeavyMultipleChoiceField" title="HeavyMultipleChoiceField" alt="" coords="298,188,292,183,274,178,246,174,211,172,172,171,133,172,98,174,70,178,52,183,46,188,52,193,70,198,98,202,133,204,172,205,211,204,246,202,274,198,292,193"/>
<area shape="poly" id="node7" href="#django_select2.fields.HeavySelect2MultipleChoiceField" title="HeavySelect2MultipleChoiceField" alt="" coords="323,271,316,265,293,261,258,257,213,255,164,254,115,255,70,257,35,261,12,265,5,271,12,276,35,281,70,284,115,287,164,288,213,287,258,284,293,281,316,276"/>
<area shape="poly" id="node2" href="#django_select2.fields.HeavyChoiceField" title="HeavyChoiceField" alt="" coords="520,105,516,100,503,95,482,92,457,89,428,88,399,89,374,92,353,95,340,100,336,105,340,111,353,115,374,119,399,121,428,122,457,121,482,119,503,115,516,111"/>
<area shape="poly" id="node13" href="#django_select2.fields.HeavySelect2ChoiceField" title="HeavySelect2ChoiceField" alt="" coords="819,271,813,265,795,261,767,257,732,255,693,254,655,255,620,257,592,261,574,265,568,271,574,276,592,281,620,284,655,287,693,288,732,287,767,284,795,281,813,276"/>
<area shape="poly" id="node4" href="#django_select2.fields.AutoSelect2MultipleField" title="AutoSelect2MultipleField" alt="" coords="434,353,428,348,411,343,383,340,349,337,311,336,273,337,238,340,211,343,193,348,187,353,193,359,211,363,238,367,273,369,311,370,349,369,383,367,411,363,428,359"/>
<area shape="poly" id="node5" href="#django_select2.fields.AutoViewFieldMixin" title="AutoViewFieldMixin" alt="" coords="543,271,539,265,525,261,503,257,476,255,445,254,415,255,388,257,366,261,352,265,347,271,352,276,366,281,388,284,415,287,445,288,476,287,503,284,525,281,539,276"/>
<area shape="poly" id="node11" href="#django_select2.fields.AutoSelect2Field" title="AutoSelect2Field" alt="" coords="659,353,655,348,642,343,622,340,597,337,569,336,542,337,517,340,497,343,484,348,480,353,484,359,497,363,517,367,542,369,569,370,597,369,622,367,642,363,655,359"/>
<area shape="poly" id="node9" href="#django_select2.fields.ChoiceMixin" title="ChoiceMixin" alt="" coords="432,23,429,17,419,13,405,9,386,7,365,6,345,7,326,9,311,13,302,17,298,23,302,28,311,33,326,36,345,39,365,40,386,39,405,36,419,33,429,28"/>
<area shape="poly" id="node10" href="#django_select2.fields.HeavySelect2FieldBaseMixin" title="HeavySelect2FieldBaseMixin" alt="" coords="616,188,609,183,589,178,559,174,520,172,477,171,435,172,396,174,365,178,346,183,339,188,346,193,365,198,396,202,435,204,477,205,520,204,559,202,589,198,609,193"/>
<area shape="poly" id="node1" href="#django_select2.fields.AutoSelect2MultipleField" title="AutoSelect2MultipleField" alt="" coords="434,353,428,348,411,343,383,340,349,337,311,336,273,337,238,340,211,343,193,348,187,353,193,359,211,363,238,367,273,369,311,370,349,369,383,367,411,363,428,359"/>
<area shape="poly" id="node2" href="#django_select2.fields.AutoViewFieldMixin" title="AutoViewFieldMixin" alt="" coords="543,271,539,265,525,261,503,257,476,255,445,254,415,255,388,257,366,261,352,265,347,271,352,276,366,281,388,284,415,287,445,288,476,287,503,284,525,281,539,276"/>
<area shape="poly" id="node17" href="#django_select2.fields.AutoSelect2Field" title="AutoSelect2Field" alt="" coords="659,353,655,348,642,343,622,340,597,337,569,336,542,337,517,340,497,343,484,348,480,353,484,359,497,363,517,367,542,369,569,370,597,369,622,367,642,363,655,359"/>
<area shape="poly" id="node4" href="#django_select2.fields.HeavySelect2MultipleChoiceField" title="HeavySelect2MultipleChoiceField" alt="" coords="323,271,316,265,293,261,258,257,213,255,164,254,115,255,70,257,35,261,12,265,5,271,12,276,35,281,70,284,115,287,164,288,213,287,258,284,293,281,316,276"/>
<area shape="poly" id="node9" href="#django_select2.fields.HeavyChoiceField" title="HeavyChoiceField" alt="" coords="496,105,492,100,479,95,458,92,433,89,404,88,375,89,350,92,329,95,316,100,312,105,316,111,329,115,350,119,375,121,404,122,433,121,458,119,479,115,492,111"/>
<area shape="poly" id="node7" href="#django_select2.fields.ChoiceMixin" title="ChoiceMixin" alt="" coords="535,23,532,17,522,13,507,9,489,7,468,6,447,7,429,9,414,13,404,17,401,23,404,28,414,33,429,36,447,39,468,40,489,39,507,36,522,33,532,28"/>
<area shape="poly" id="node8" href="#django_select2.fields.HeavyMultipleChoiceField" title="HeavyMultipleChoiceField" alt="" coords="298,188,292,183,274,178,246,174,211,172,172,171,133,172,98,174,70,178,52,183,46,188,52,193,70,198,98,202,133,204,172,205,211,204,246,202,274,198,292,193"/>
<area shape="poly" id="node11" href="#django_select2.fields.HeavySelect2ChoiceField" title="HeavySelect2ChoiceField" alt="" coords="819,271,813,265,795,261,767,257,732,255,693,254,655,255,620,257,592,261,574,265,568,271,574,276,592,281,620,284,655,287,693,288,732,287,767,284,795,281,813,276"/>
<area shape="poly" id="node12" href="#django_select2.fields.HeavySelect2FieldBaseMixin" title="HeavySelect2FieldBaseMixin" alt="" coords="632,188,625,183,605,178,575,174,536,172,493,171,451,172,412,174,381,178,362,183,355,188,362,193,381,198,412,202,451,204,493,205,536,204,575,202,605,198,625,193"/>
</map>
</p>
<p class="graphviz">
<img src="_images/inheritance-d2d3431bd3c31e7a510aefa5d1a5553cdd860d3f.png" alt="Inheritance diagram of django_select2.fields.AutoModelSelect2Field" usemap="#inheritance0bde21cdb9" class="inheritance"/>
<img src="_images/inheritance-bd37a53fe3397f45f7ecdb72644bd53ec8a140ac.png" alt="Inheritance diagram of django_select2.fields.AutoModelSelect2Field" usemap="#inheritance0bde21cdb9" class="inheritance"/>
<map id="inheritance0bde21cdb9" name="inheritance0bde21cdb9">
<area shape="poly" id="node9" href="#django_select2.fields.HeavyModelSelect2ChoiceField" title="HeavyModelSelect2ChoiceField" alt="" coords="772,271,764,265,743,261,709,257,667,255,620,254,573,255,531,257,497,261,476,265,468,271,476,276,497,281,531,284,573,287,620,288,667,287,709,284,743,281,764,276"/>
<area shape="poly" id="node4" href="#django_select2.fields.ModelResultJsonMixin" title="ModelResultJsonMixin" alt="" coords="224,271,219,265,203,261,179,257,148,255,115,254,81,255,50,257,26,261,11,265,5,271,11,276,26,281,50,284,81,287,115,288,148,287,179,284,203,281,219,276"/>
<area shape="poly" id="node5" href="#django_select2.fields.AutoModelSelect2Field" title="AutoModelSelect2Field" alt="" coords="463,353,457,348,440,343,415,340,383,337,347,336,311,337,279,340,253,343,236,348,231,353,236,359,253,363,279,367,311,369,347,370,383,369,415,367,440,363,457,359"/>
<area shape="poly" id="node7" href="#django_select2.fields.AutoViewFieldMixin" title="AutoViewFieldMixin" alt="" coords="445,271,440,265,426,261,404,257,377,255,347,254,316,255,289,257,267,261,253,265,249,271,253,276,267,281,289,284,316,287,347,288,377,287,404,284,426,281,440,276"/>
<area shape="poly" id="node14" href="#django_select2.fields.HeavySelect2FieldBaseMixin" title="HeavySelect2FieldBaseMixin" alt="" coords="631,188,624,183,604,178,573,174,535,172,492,171,449,172,411,174,380,178,360,183,353,188,360,193,380,198,411,202,449,204,492,205,535,204,573,202,604,198,624,193"/>
<area shape="poly" id="node4" href="#django_select2.fields.HeavyModelSelect2ChoiceField" title="HeavyModelSelect2ChoiceField" alt="" coords="772,271,764,265,743,261,709,257,667,255,620,254,573,255,531,257,497,261,476,265,468,271,476,276,497,281,531,284,573,287,620,288,667,287,709,284,743,281,764,276"/>
<area shape="poly" id="node10" href="#django_select2.fields.AutoModelSelect2Field" title="AutoModelSelect2Field" alt="" coords="451,353,445,348,428,343,403,340,371,337,335,336,299,337,267,340,241,343,224,348,219,353,224,359,241,363,267,367,299,369,335,370,371,369,403,367,428,363,445,359"/>
<area shape="poly" id="node5" href="#django_select2.fields.HeavySelect2FieldBaseMixin" title="HeavySelect2FieldBaseMixin" alt="" coords="631,188,624,183,604,178,573,174,535,172,492,171,449,172,411,174,380,178,360,183,353,188,360,193,380,198,411,202,449,204,492,205,535,204,573,202,604,198,624,193"/>
<area shape="poly" id="node8" href="#django_select2.fields.AutoViewFieldMixin" title="AutoViewFieldMixin" alt="" coords="201,271,196,265,182,261,160,257,133,255,103,254,72,255,45,257,23,261,9,265,5,271,9,276,23,281,45,284,72,287,103,288,133,287,160,284,182,281,196,276"/>
<area shape="poly" id="node11" href="#django_select2.fields.ModelResultJsonMixin" title="ModelResultJsonMixin" alt="" coords="444,271,439,265,423,261,399,257,368,255,335,254,301,255,270,257,246,261,231,265,225,271,231,276,246,281,270,284,301,287,335,288,368,287,399,284,423,281,439,276"/>
</map>
</p>
<p class="graphviz">
<img src="_images/inheritance-271ecefe519ab8c83b97b2f742abdd0e2ea4d6b8.png" alt="Inheritance diagram of django_select2.fields.AutoModelSelect2MultipleField" usemap="#inheritancea008ca3d81" class="inheritance"/>
<img src="_images/inheritance-36daab49567a54c564ce8bc37d5130439990f62c.png" alt="Inheritance diagram of django_select2.fields.AutoModelSelect2MultipleField" usemap="#inheritancea008ca3d81" class="inheritance"/>
<map id="inheritancea008ca3d81" name="inheritancea008ca3d81">
<area shape="poly" id="node4" href="#django_select2.fields.ModelResultJsonMixin" title="ModelResultJsonMixin" alt="" coords="224,353,219,348,203,343,179,340,148,337,115,336,81,337,50,340,26,343,11,348,5,353,11,359,26,363,50,367,81,369,115,370,148,369,179,367,203,363,219,359"/>
<area shape="poly" id="node11" href="#django_select2.fields.AutoModelSelect2MultipleField" title="AutoModelSelect2MultipleField" alt="" coords="497,436,489,431,468,426,435,422,393,420,347,419,300,420,259,422,225,426,204,431,197,436,204,441,225,446,259,450,300,452,347,453,393,452,435,450,468,446,489,441"/>
<area shape="poly" id="node5" href="#django_select2.fields.HeavyModelSelect2MultipleChoiceField" title="HeavyModelSelect2MultipleChoiceField" alt="" coords="840,353,831,348,805,343,764,340,712,337,655,336,597,337,545,340,504,343,478,348,469,353,478,359,504,363,545,367,597,369,655,370,712,369,764,367,805,363,831,359"/>
<area shape="poly" id="node6" href="#django_select2.fields.HeavySelect2FieldBaseMixin" title="HeavySelect2FieldBaseMixin" alt="" coords="648,271,641,265,621,261,591,257,552,255,509,254,467,255,428,257,397,261,378,265,371,271,378,276,397,281,428,284,467,287,509,288,552,287,591,284,621,281,641,276"/>
<area shape="poly" id="node10" href="#django_select2.fields.AutoViewFieldMixin" title="AutoViewFieldMixin" alt="" coords="445,353,440,348,426,343,404,340,377,337,347,336,316,337,289,340,267,343,253,348,249,353,253,359,267,363,289,367,316,369,347,370,377,369,404,367,426,363,440,359"/>
<area shape="poly" id="node4" href="#django_select2.fields.AutoViewFieldMixin" title="AutoViewFieldMixin" alt="" coords="201,353,196,348,182,343,160,340,133,337,103,336,72,337,45,340,23,343,9,348,5,353,9,359,23,363,45,367,72,369,103,370,133,369,160,367,182,363,196,359"/>
<area shape="poly" id="node13" href="#django_select2.fields.AutoModelSelect2MultipleField" title="AutoModelSelect2MultipleField" alt="" coords="485,436,477,431,456,426,423,422,381,420,335,419,288,420,247,422,213,426,192,431,185,436,192,441,213,446,247,450,288,452,335,453,381,452,423,450,456,446,477,441"/>
<area shape="poly" id="node7" href="#django_select2.fields.HeavyModelSelect2MultipleChoiceField" title="HeavyModelSelect2MultipleChoiceField" alt="" coords="839,353,830,348,804,343,763,340,711,337,653,336,596,337,544,340,503,343,477,348,468,353,477,359,503,363,544,367,596,369,653,370,711,369,763,367,804,363,830,359"/>
<area shape="poly" id="node8" href="#django_select2.fields.HeavySelect2FieldBaseMixin" title="HeavySelect2FieldBaseMixin" alt="" coords="647,271,640,265,620,261,589,257,551,255,508,254,465,255,427,257,396,261,376,265,369,271,376,276,396,281,427,284,465,287,508,288,551,287,589,284,620,281,640,276"/>
<area shape="poly" id="node12" href="#django_select2.fields.ModelResultJsonMixin" title="ModelResultJsonMixin" alt="" coords="444,353,439,348,423,343,399,340,368,337,335,336,301,337,270,340,246,343,231,348,225,353,231,359,246,363,270,367,301,369,335,370,368,369,399,367,423,363,439,359"/>
</map>
</p>
</div>
@ -697,7 +697,7 @@ json query requests for that type (class).</p>
<li class="right" >
<a href="ref_widgets.html" title="Widgets"
>previous</a> |</li>
<li><a href="index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
<li><a href="reference.html" >API Reference</a> &raquo;</li>
</ul>
</div>

View file

@ -7,7 +7,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Util &mdash; Django-Select2 3.1.3 documentation</title>
<title>Util &mdash; Django-Select2 3.1.4 documentation</title>
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
@ -15,7 +15,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '3.1.3',
VERSION: '3.1.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
@ -24,7 +24,7 @@
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="Django-Select2 3.1.3 documentation" href="index.html" />
<link rel="top" title="Django-Select2 3.1.4 documentation" href="index.html" />
<link rel="up" title="API Reference" href="reference.html" />
<link rel="prev" title="Views" href="ref_views.html" />
</head>
@ -41,7 +41,7 @@
<li class="right" >
<a href="ref_views.html" title="Views"
accesskey="P">previous</a> |</li>
<li><a href="index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
<li><a href="reference.html" accesskey="U">API Reference</a> &raquo;</li>
</ul>
</div>
@ -56,11 +56,11 @@
<div class="section" id="class-diagram">
<h2>Class Diagram<a class="headerlink" href="#class-diagram" title="Permalink to this headline"></a></h2>
<p class="graphviz">
<img src="_images/inheritance-35430962092033b45a0c23fd3b8b115d541cab0d.png" alt="Inheritance diagram of django_select2.util" usemap="#inheritance39128e562c" class="inheritance"/>
<img src="_images/inheritance-46ef0cf424562cdb74d4666f71ab5a9fff682049.png" alt="Inheritance diagram of django_select2.util" usemap="#inheritance39128e562c" class="inheritance"/>
<map id="inheritance39128e562c" name="inheritance39128e562c">
<area shape="poly" id="node1" href="#django_select2.util.JSVar" title="JSVar" alt="" coords="199,23,197,17,191,13,183,9,172,7,160,6,148,7,137,9,129,13,123,17,121,23,123,28,129,33,137,36,148,39,160,40,172,39,183,36,191,33,197,28"/>
<area shape="poly" id="node2" href="#django_select2.util.JSFunction" title="JSFunction" alt="" coords="127,105,124,100,115,95,101,92,84,89,65,88,46,89,29,92,16,95,7,100,4,105,7,111,16,115,29,119,46,121,65,122,84,121,101,119,115,115,124,111"/>
<area shape="poly" id="node4" href="#django_select2.util.JSFunctionInContext" title="JSFunctionInContext" alt="" coords="358,105,353,100,339,95,316,92,287,89,255,88,223,89,194,92,171,95,156,100,151,105,156,111,171,115,194,119,223,121,255,122,287,121,316,119,339,115,353,111"/>
<area shape="poly" id="node1" href="#django_select2.util.JSFunctionInContext" title="JSFunctionInContext" alt="" coords="212,105,207,100,192,95,169,92,140,89,108,88,76,89,47,92,24,95,9,100,4,105,9,111,24,115,47,119,76,121,108,122,140,121,169,119,192,115,207,111"/>
<area shape="poly" id="node2" href="#django_select2.util.JSVar" title="JSVar" alt="" coords="241,23,239,17,234,13,225,9,215,7,203,6,191,7,180,9,171,13,166,17,164,23,166,28,171,33,180,36,191,39,203,40,215,39,225,36,234,33,239,28"/>
<area shape="poly" id="node4" href="#django_select2.util.JSFunction" title="JSFunction" alt="" coords="359,105,356,100,347,95,333,92,316,89,297,88,278,89,261,92,248,95,239,100,236,105,239,111,248,115,261,119,278,121,297,122,316,121,333,119,347,115,356,111"/>
</map>
</p>
</div>
@ -348,7 +348,7 @@ Id generated that time, would be returned.</p>
<li class="right" >
<a href="ref_views.html" title="Views"
>previous</a> |</li>
<li><a href="index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
<li><a href="reference.html" >API Reference</a> &raquo;</li>
</ul>
</div>

View file

@ -7,7 +7,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Views &mdash; Django-Select2 3.1.3 documentation</title>
<title>Views &mdash; Django-Select2 3.1.4 documentation</title>
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
@ -15,7 +15,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '3.1.3',
VERSION: '3.1.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
@ -24,7 +24,7 @@
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="Django-Select2 3.1.3 documentation" href="index.html" />
<link rel="top" title="Django-Select2 3.1.4 documentation" href="index.html" />
<link rel="up" title="API Reference" href="reference.html" />
<link rel="next" title="Util" href="ref_util.html" />
<link rel="prev" title="Fields" href="ref_fields.html" />
@ -45,7 +45,7 @@
<li class="right" >
<a href="ref_fields.html" title="Fields"
accesskey="P">previous</a> |</li>
<li><a href="index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
<li><a href="reference.html" accesskey="U">API Reference</a> &raquo;</li>
</ul>
</div>
@ -60,11 +60,11 @@
<div class="section" id="class-diagram">
<h2>Class Diagram<a class="headerlink" href="#class-diagram" title="Permalink to this headline"></a></h2>
<p class="graphviz">
<img src="_images/inheritance-e140ca627565f1db9045dec4eab06ced1505a45a.png" alt="Inheritance diagram of django_select2.views" usemap="#inheritanceb5a6c91e22" class="inheritance"/>
<img src="_images/inheritance-882b6039211cfb019a78eb35637fefe1f26f6259.png" alt="Inheritance diagram of django_select2.views" usemap="#inheritanceb5a6c91e22" class="inheritance"/>
<map id="inheritanceb5a6c91e22" name="inheritanceb5a6c91e22">
<area shape="poly" id="node3" href="#django_select2.views.Select2View" title="Select2View" alt="" coords="190,105,187,100,177,95,162,92,143,89,121,88,100,89,81,92,66,95,56,100,53,105,56,111,66,115,81,119,100,121,121,122,143,121,162,119,177,115,187,111"/>
<area shape="poly" id="node2" href="#django_select2.views.AutoResponseView" title="AutoResponseView" alt="" coords="221,188,216,183,202,178,180,174,152,172,121,171,90,172,63,174,40,178,26,183,21,188,26,193,40,198,63,202,90,204,121,205,152,204,180,202,202,198,216,193"/>
<area shape="poly" id="node5" href="#django_select2.views.JSONResponseMixin" title="JSONResponseMixin" alt="" coords="304,23,299,17,284,13,262,9,234,7,203,6,171,7,143,9,121,13,107,17,102,23,107,28,121,33,143,36,171,39,203,40,234,39,262,36,284,33,299,28"/>
<area shape="poly" id="node1" href="#django_select2.views.Select2View" title="Select2View" alt="" coords="254,105,251,100,241,95,226,92,207,89,185,88,164,89,145,92,130,95,120,100,117,105,120,111,130,115,145,119,164,121,185,122,207,121,226,119,241,115,251,111"/>
<area shape="poly" id="node6" href="#django_select2.views.AutoResponseView" title="AutoResponseView" alt="" coords="285,188,280,183,266,178,244,174,216,172,185,171,154,172,127,174,104,178,90,183,85,188,90,193,104,198,127,202,154,204,185,205,216,204,244,202,266,198,280,193"/>
<area shape="poly" id="node2" href="#django_select2.views.JSONResponseMixin" title="JSONResponseMixin" alt="" coords="206,23,201,17,187,13,165,9,137,7,105,6,74,7,46,9,24,13,9,17,4,23,9,28,24,33,46,36,74,39,105,40,137,39,165,36,187,33,201,28"/>
</map>
</p>
</div>
@ -274,7 +274,7 @@ Although it is not mandatory to use, but is immensely helpful.</p>
<li class="right" >
<a href="ref_fields.html" title="Fields"
>previous</a> |</li>
<li><a href="index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
<li><a href="reference.html" >API Reference</a> &raquo;</li>
</ul>
</div>

View file

@ -7,7 +7,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Widgets &mdash; Django-Select2 3.1.3 documentation</title>
<title>Widgets &mdash; Django-Select2 3.1.4 documentation</title>
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
@ -15,7 +15,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '3.1.3',
VERSION: '3.1.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
@ -24,7 +24,7 @@
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="Django-Select2 3.1.3 documentation" href="index.html" />
<link rel="top" title="Django-Select2 3.1.4 documentation" href="index.html" />
<link rel="up" title="API Reference" href="reference.html" />
<link rel="next" title="Fields" href="ref_fields.html" />
<link rel="prev" title="API Reference" href="reference.html" />
@ -45,7 +45,7 @@
<li class="right" >
<a href="reference.html" title="API Reference"
accesskey="P">previous</a> |</li>
<li><a href="index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
<li><a href="reference.html" accesskey="U">API Reference</a> &raquo;</li>
</ul>
</div>
@ -60,18 +60,18 @@
<div class="section" id="class-diagram">
<h2>Class Diagram<a class="headerlink" href="#class-diagram" title="Permalink to this headline"></a></h2>
<p class="graphviz">
<img src="_images/inheritance-86cc40a0c548b7cf742a0872dba75221b0f249e4.png" alt="Inheritance diagram of django_select2.widgets" usemap="#inheritancecdbd4d640c" class="inheritance"/>
<img src="_images/inheritance-0888154528d7782c483cc0100d85148fc615fb52.png" alt="Inheritance diagram of django_select2.widgets" usemap="#inheritancecdbd4d640c" class="inheritance"/>
<map id="inheritancecdbd4d640c" name="inheritancecdbd4d640c">
<area shape="poly" id="node1" href="#django_select2.widgets.MultipleSelect2HiddenInput" title="MultipleSelect2HiddenInput" alt="" coords="979,271,973,265,953,261,923,257,885,255,843,254,800,255,762,257,732,261,713,265,706,271,713,276,732,281,762,284,800,287,843,288,885,287,923,284,953,281,973,276"/>
<area shape="poly" id="node20" href="#django_select2.widgets.HeavySelect2MultipleWidget" title="HeavySelect2MultipleWidget" alt="" coords="966,353,959,348,940,343,909,340,870,337,827,336,784,337,745,340,714,343,694,348,687,353,694,359,714,363,745,367,784,369,827,370,870,369,909,367,940,363,959,359"/>
<area shape="poly" id="node12" href="#django_select2.widgets.HeavySelect2Widget" title="HeavySelect2Widget" alt="" coords="406,353,400,348,385,343,362,340,333,337,300,336,267,337,238,340,215,343,200,348,194,353,200,359,215,363,238,367,267,369,300,370,333,369,362,367,385,363,400,359"/>
<area shape="poly" id="node4" href="#django_select2.widgets.Select2Widget" title="Select2Widget" alt="" coords="163,271,159,265,148,261,131,257,108,255,84,254,60,255,37,257,20,261,9,265,5,271,9,276,20,281,37,284,60,287,84,288,108,287,131,284,148,281,159,276"/>
<area shape="poly" id="node5" href="#django_select2.widgets.Select2Mixin" title="Select2Mixin" alt="" coords="354,188,350,183,340,178,325,174,306,172,284,171,262,172,243,174,228,178,218,183,214,188,218,193,228,198,243,202,262,204,284,205,306,204,325,202,340,198,350,193"/>
<area shape="poly" id="node22" href="#django_select2.widgets.HeavySelect2Mixin" title="HeavySelect2Mixin" alt="" coords="380,271,375,265,362,261,341,257,314,255,284,254,254,255,227,257,206,261,193,265,188,271,193,276,206,281,227,284,254,287,284,288,314,287,341,284,362,281,375,276"/>
<area shape="poly" id="node29" href="#django_select2.widgets.Select2MultipleWidget" title="Select2MultipleWidget" alt="" coords="630,271,625,265,609,261,584,257,552,255,517,254,482,255,451,257,426,261,410,265,404,271,410,276,426,281,451,284,482,287,517,288,552,287,584,284,609,281,625,276"/>
<area shape="poly" id="node9" href="#django_select2.widgets.AutoHeavySelect2Widget" title="AutoHeavySelect2Widget" alt="" coords="534,436,528,431,510,426,482,422,447,420,408,419,369,420,334,422,306,426,288,431,282,436,288,441,306,446,334,450,369,452,408,453,447,452,482,450,510,446,528,441"/>
<area shape="poly" id="node10" href="#django_select2.widgets.AutoHeavySelect2Mixin" title="AutoHeavySelect2Mixin" alt="" coords="664,353,658,348,641,343,615,340,583,337,547,336,511,337,478,340,452,343,435,348,430,353,435,359,452,363,478,367,511,369,547,370,583,369,615,367,641,363,658,359"/>
<area shape="poly" id="node18" href="#django_select2.widgets.AutoHeavySelect2MultipleWidget" title="AutoHeavySelect2MultipleWidget" alt="" coords="932,436,924,431,902,426,866,422,822,420,772,419,722,420,678,422,642,426,620,431,612,436,620,441,642,446,678,450,722,452,772,453,822,452,866,450,902,446,924,441"/>
<area shape="poly" id="node1" href="#django_select2.widgets.HeavySelect2MultipleWidget" title="HeavySelect2MultipleWidget" alt="" coords="284,353,277,348,257,343,226,340,187,337,144,336,101,337,62,340,31,343,11,348,4,353,11,359,31,363,62,367,101,369,144,370,187,369,226,367,257,363,277,359"/>
<area shape="poly" id="node31" href="#django_select2.widgets.AutoHeavySelect2MultipleWidget" title="AutoHeavySelect2MultipleWidget" alt="" coords="412,436,404,431,382,426,346,422,302,420,252,419,202,420,158,422,122,426,100,431,92,436,100,441,122,446,158,450,202,452,252,453,302,452,346,450,382,446,404,441"/>
<area shape="poly" id="node2" href="#django_select2.widgets.HeavySelect2Mixin" title="HeavySelect2Mixin" alt="" coords="712,271,707,265,694,261,673,257,646,255,616,254,586,255,559,257,538,261,525,265,520,271,525,276,538,281,559,284,586,287,616,288,646,287,673,284,694,281,707,276"/>
<area shape="poly" id="node14" href="#django_select2.widgets.HeavySelect2Widget" title="HeavySelect2Widget" alt="" coords="776,353,771,348,756,343,733,340,703,337,671,336,638,337,609,340,585,343,570,348,565,353,570,359,585,363,609,367,638,369,671,370,703,369,733,367,756,363,771,359"/>
<area shape="poly" id="node4" href="#django_select2.widgets.MultipleSelect2HiddenInput" title="MultipleSelect2HiddenInput" alt="" coords="335,271,329,265,309,261,279,257,241,255,199,254,156,255,118,257,88,261,69,265,62,271,69,276,88,281,118,284,156,287,199,288,241,287,279,284,309,281,329,276"/>
<area shape="poly" id="node6" href="#django_select2.widgets.Select2Mixin" title="Select2Mixin" alt="" coords="774,188,770,183,760,178,745,174,726,172,704,171,682,172,663,174,648,178,638,183,634,188,638,193,648,198,663,202,682,204,704,205,726,204,745,202,760,198,770,193"/>
<area shape="poly" id="node11" href="#django_select2.widgets.Select2MultipleWidget" title="Select2MultipleWidget" alt="" coords="962,271,957,265,941,261,916,257,884,255,849,254,814,255,783,257,758,261,742,265,736,271,742,276,758,281,783,284,814,287,849,288,884,287,916,284,941,281,957,276"/>
<area shape="poly" id="node21" href="#django_select2.widgets.Select2Widget" title="Select2Widget" alt="" coords="1145,271,1141,265,1129,261,1112,257,1090,255,1065,254,1041,255,1019,257,1001,261,990,265,986,271,990,276,1001,281,1019,284,1041,287,1065,288,1090,287,1112,284,1129,281,1141,276"/>
<area shape="poly" id="node26" href="#django_select2.widgets.AutoHeavySelect2Widget" title="AutoHeavySelect2Widget" alt="" coords="742,436,736,431,718,426,690,422,655,420,616,419,577,420,542,422,514,426,496,431,490,436,496,441,514,446,542,450,577,452,616,453,655,452,690,450,718,446,736,441"/>
<area shape="poly" id="node27" href="#django_select2.widgets.AutoHeavySelect2Mixin" title="AutoHeavySelect2Mixin" alt="" coords="541,353,535,348,519,343,493,340,460,337,424,336,388,337,355,340,329,343,313,348,307,353,313,359,329,363,355,367,388,369,424,370,460,369,493,367,519,363,535,359"/>
</map>
</p>
</div>
@ -141,14 +141,14 @@ restriction we make sure to not break the code by passing some wrong concotion o
<dl class="attribute">
<dt id="django_select2.widgets.Select2Mixin.options">
<tt class="descname">options</tt><em class="property"> = {'minimumResultsForSearch': 6, 'allowClear': True, 'closeOnSelect': False, 'placeholder': '', 'multiple': False}</em><a class="headerlink" href="#django_select2.widgets.Select2Mixin.options" title="Permalink to this definition"></a></dt>
<dd><p>The options listed in this are rendered as JS map and passed to Select2 JS code.
The complete description of theses options are available in <a class="reference external" href="http://ivaynberg.github.com/select2/#documentation.">Select2</a> JS&#8217; site.</p>
<dd><p>The options listed here are rendered as JS map and passed to Select2 JS code.
Complete description of theses options are available in <a class="reference external" href="http://ivaynberg.github.com/select2/#documentation.">Select2</a> JS&#8217; site.</p>
</dd></dl>
<dl class="method">
<dt id="django_select2.widgets.Select2Mixin.init_options">
<tt class="descname">init_options</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/django_select2/widgets.html#Select2Mixin.init_options"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#django_select2.widgets.Select2Mixin.init_options" title="Permalink to this definition"></a></dt>
<dd><p>Sub-classes can use this to pass additional options to Select2 JS library.</p>
<dd><p>Sub-classes can use this to suppress or override options passed to Select2 JS library.</p>
<p>Example:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="k">def</span> <span class="nf">init_options</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">options</span><span class="p">[</span><span class="s">&#39;createSearchChoice&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">JSFunction</span><span class="p">(</span><span class="s">&#39;Your_js_function&#39;</span><span class="p">)</span>
@ -589,7 +589,7 @@ serve the request.</p>
<li class="right" >
<a href="reference.html" title="API Reference"
>previous</a> |</li>
<li><a href="index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
<li><a href="reference.html" >API Reference</a> &raquo;</li>
</ul>
</div>

View file

@ -7,7 +7,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>API Reference &mdash; Django-Select2 3.1.3 documentation</title>
<title>API Reference &mdash; Django-Select2 3.1.4 documentation</title>
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
@ -15,7 +15,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '3.1.3',
VERSION: '3.1.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
@ -24,7 +24,7 @@
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="Django-Select2 3.1.3 documentation" href="index.html" />
<link rel="top" title="Django-Select2 3.1.4 documentation" href="index.html" />
<link rel="next" title="Widgets" href="ref_widgets.html" />
<link rel="prev" title="Get Started" href="get_started.html" />
</head>
@ -44,7 +44,7 @@
<li class="right" >
<a href="get_started.html" title="Get Started"
accesskey="P">previous</a> |</li>
<li><a href="index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
</ul>
</div>
@ -132,7 +132,7 @@
<li class="right" >
<a href="get_started.html" title="Get Started"
>previous</a> |</li>
<li><a href="index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">

View file

@ -7,7 +7,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Search &mdash; Django-Select2 3.1.3 documentation</title>
<title>Search &mdash; Django-Select2 3.1.4 documentation</title>
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
@ -15,7 +15,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '3.1.3',
VERSION: '3.1.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
@ -25,7 +25,7 @@
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/searchtools.js"></script>
<link rel="top" title="Django-Select2 3.1.3 documentation" href="index.html" />
<link rel="top" title="Django-Select2 3.1.4 documentation" href="index.html" />
<script type="text/javascript">
jQuery(function() { Search.loadIndex("searchindex.js"); });
</script>
@ -42,7 +42,7 @@
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
</ul>
</div>
@ -93,7 +93,7 @@
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">Django-Select2 3.1.3 documentation</a> &raquo;</li>
<li><a href="index.html">Django-Select2 3.1.4 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">

File diff suppressed because one or more lines are too long

View file

@ -34,7 +34,7 @@ class SelfChoices(AutoSelect2Field):
class SelfMultiChoices(AutoSelect2MultipleField):
big_data = {
1: "First", 2: "Second", 3: "Third",
}
}
def validate_value(self, value):
if value in [v for v in self.big_data]:
@ -85,7 +85,7 @@ class MixedForm(forms.Form):
widget=AutoHeavySelect2Widget(
select2_options={
'width': '32em',
'placeHolder': u"Search foo"
'placeholder': u"Search foo"
}
)
)
@ -95,10 +95,15 @@ EmployeeChoices() # Should already be registered
EmployeeChoices(auto_id="EmployeeChoices_CustomAutoId") # Should get registered
class InitialValueForm(forms.Form):
select2Choice = Select2ChoiceField(initial=2, choices=((1, "First"), (2, "Second"), (3, "Third"), ))
select2MultipleChoice = Select2MultipleChoiceField(initial=[2,3], choices=((1, "First"), (2, "Second"), (3, "Third"), ))
heavySelect2Choice = AutoSelect2Field(initial=2, choices=((1, "First"), (2, "Second"), (3, "Third"), ))
heavySelect2MultipleChoice = AutoSelect2MultipleField(initial=[1,3], choices=((1, "First"), (2, "Second"), (3, "Third"), ))
self_choices = SelfChoices(label='Self copy choices', initial=2, choices=((1, "First"), (2, "Second"), (3, "Third"), ))
select2Choice = Select2ChoiceField(initial=2,
choices=((1, "First"), (2, "Second"), (3, "Third"), ))
select2MultipleChoice = Select2MultipleChoiceField(initial=[2,3],
choices=((1, "First"), (2, "Second"), (3, "Third"), ))
heavySelect2Choice = AutoSelect2Field(initial=2,
choices=((1, "First"), (2, "Second"), (3, "Third"), ))
heavySelect2MultipleChoice = AutoSelect2MultipleField(initial=[1,3],
choices=((1, "First"), (2, "Second"), (3, "Third"), ))
self_choices = SelfChoices(label='Self copy choices', initial=2,
choices=((1, "First"), (2, "Second"), (3, "Third"), ))
self_multi_choices = SelfMultiChoices(label='Self copy multi-choices', initial=[2,3])

View file

@ -1,17 +1,16 @@
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
from django.shortcuts import render, get_object_or_404
from .forms import EmployeeForm, DeptForm, MixedForm, InitialValueForm
from .models import Employee, Dept
def test_single_value_model_field(request):
return render_to_response('list.html', RequestContext(request, {
return render(request, 'list.html', {
'title': 'Employees',
'href': 'test_single_value_model_field1',
'object_list': Employee.objects.all()
}))
})
def test_single_value_model_field1(request, id):
emp = get_object_or_404(Employee, pk=id)
@ -22,15 +21,15 @@ def test_single_value_model_field1(request, id):
return HttpResponseRedirect(reverse('home'))
else:
form = EmployeeForm(instance=emp)
return render_to_response('form.html', RequestContext(request, {'form': form}))
return render(request, 'form.html', {'form': form})
def test_multi_values_model_field(request):
return render_to_response('list.html', RequestContext(request, {
return render(request, 'list.html', {
'title': 'Departments',
'href': 'test_multi_values_model_field1',
'object_list': Dept.objects.all()
}))
})
def test_multi_values_model_field1(request, id):
dept = get_object_or_404(Dept, pk=id)
@ -41,7 +40,7 @@ def test_multi_values_model_field1(request, id):
return HttpResponseRedirect(reverse('home'))
else:
form = DeptForm(instance=dept)
return render_to_response('form.html', RequestContext(request, {'form': form}))
return render(request, 'form.html', {'form': form})
def test_mixed_form(request):
if request.POST:
@ -49,10 +48,9 @@ def test_mixed_form(request):
form.is_valid()
else:
form = MixedForm()
return render_to_response('form.html', RequestContext(request, {'form': form}))
return render(request, 'form.html', {'form': form})
def test_init_values(request):
return render_to_response('form.html', RequestContext(request, {'form': InitialValueForm()}))
return render(request, 'form.html', {'form': InitialValueForm()})