Commit graph

467 commits

Author SHA1 Message Date
Johannes Hoppe
1954bf57fa Add SELECT2_LIB_VERSION setting
The new setting allows to change to default library version to
a specific value without overriding all URLs individually.
2018-07-24 13:05:11 +02:00
Asger Hautop Drewsen
08ca1c1c36 Add note about Select2 support in Django 2.0 admin (#488)
Resolve #485
2018-07-01 10:37:30 +02:00
Bill Yeh
aef27f48df Add option to exclude the Select2 library from form media (#484) 2018-06-30 14:58:47 +02:00
Johannes Hoppe
f31beec0c4
Add support for custom to_field names for foreign keys (#486)
Django's ForeignKey supports custom to_fields. The to field is the
primary key by default, but can be modified. The to field is also
used by forms to reduce database lookups.

This patch add support for custom to_field names on both model or
form layer.
2018-06-30 14:56:32 +02:00
dzhuang
496cc7c502 Fallback i18n js files for zh-hans/zh-hant. (#468)
* Fallback i18n js files for zh-hans/zh-hant.

* Use Django admin's built-in SELECT2_TRANSLATIONS to determine the lang of i18n js files.
2018-06-14 11:49:47 +02:00
Jan Pieter Waagmeester
17af750d88 Link to stable Django version docs not 1.8 (#480) 2018-05-31 09:30:22 +02:00
Jan Pieter Waagmeester
67bf060991 Link to github releases from readme+changelog. (#481) 2018-05-31 09:29:18 +02:00
Johannes Hoppe
d9c899e8f7 Resolve pickle security note 2018-05-07 18:52:17 +02:00
Johannes Hoppe
e4729feb9a Add bandit config 2018-05-07 18:52:17 +02:00
Jan Pieter Waagmeester
2ea6ef8edb Fix typo in docstring ChoicesField -> ChoiceField (#472)
It's `django.forms.ChoiceField`, not `django.forms.ChoicesField`.

Used correctly here: 
a9aa31146f/django_select2/forms.py (L143)
2018-05-06 13:02:38 +02:00
Sergey Fedoseev
a9aa31146f Fixed display of ModelSelect2Mixin.filter_queryset() doc. (#470) 2018-03-24 14:25:42 +01:00
Inti Ocean
c2331b272a Add some quickstart docs (#467)
Add some quickstart docs to make it easy for someone to pick up the library and get going
straight away.
2018-03-19 12:09:54 +01:00
Johannes Hoppe
5d98048c9f
Fix #464 -- Freeze Sphinx to 1.6.5
Ref sphinx/shpinx#4520
2018-03-07 22:36:43 +01:00
Johannes Hoppe
7782e9bc3d
Fix #461 -- Remove explicit Django version classifiers 2018-02-17 15:05:46 +01:00
Alessio Ferri
426cace3a3 Improving documentation (#455) 2018-02-02 10:26:51 +01:00
Johannes Hoppe
90fbf7422f
Fix #451 -- Remove none ASCII char 2018-01-10 18:19:13 +01:00
Johannes Hoppe
f6d5afe51d Add support for Django 2.0 2017-11-25 18:56:46 +01:00
Johannes Hoppe
19e2e50921 Drop Django 1.8 and 1.10 support 2017-11-25 18:56:46 +01:00
Johannes Hoppe
937dcac08b Drop Python 3.5 support 2017-11-25 18:56:46 +01:00
Johannes Hoppe
322b389ad3 Increment version number 2017-11-25 18:56:46 +01:00
Johannes Hoppe
ac7050d2db Fix coerage badge 2017-11-25 18:56:46 +01:00
Johannes Hoppe
d4dcc5f3c0 Switch to short version of APL2 2017-11-25 18:56:46 +01:00
Johannes Hoppe
cca6583d48 Switch README to reStructuredText 2017-11-25 18:56:46 +01:00
Johannes Hoppe
1b1f345b3d Switch releases to pbr 2017-11-25 18:56:46 +01:00
Johannes Hoppe
e09951ce62 Unfreeze development requirements 2017-11-25 18:56:46 +01:00
Johannes Hoppe
f967eb643b Drop Python 2 support 2017-11-25 18:56:46 +01:00
Jens Timmerman
176be2fdcf Update setup.cfg (#446)
not all build systems running `python setup.py bdist_rpm`  will generate a setup.cfg if one is already present
so we need to repeat the dependencies from setup.py in setup.cfg's bdist_rpm section if we want to create correct dependencies  in the rpm's generated. (django appconf 0.6 is called python-django-appconf in redhat/centos/fedora)
2017-11-23 12:51:54 +01:00
Johannes Hoppe
e1f5b7d999 Switch from coveralls to codecov 2017-11-10 09:47:12 +01:00
pyup-bot
5f263f9385 Update jinja2 from 2.9.6 to 2.10 2017-11-09 13:46:01 +01:00
pyup-bot
3ebad0dc12 Update coverage from 4.4.1 to 4.4.2 2017-11-05 16:01:56 +01:00
pyup-bot
00c082bd6d Update selenium from 3.6.0 to 3.7.0 2017-11-03 10:20:18 +01:00
pyup-bot
3cc666e46d Update pytz from 2017.2 to 2017.3 2017-11-01 13:53:56 +01:00
pyup-bot
47c191fe13 Update flake8 from 3.4.1 to 3.5.0 2017-10-24 20:37:37 +02:00
pyup-bot
4ebbb05d11 Update pep8 from 1.7.0 to 1.7.1 2017-10-24 20:35:32 +02:00
pyup-bot
4ba7ecb8a0 Update sphinx from 1.6.4 to 1.6.5 2017-10-23 09:43:50 +02:00
pyup-bot
2b2b11fdf4 Update sphinxcontrib-spelling from 4.0.0 to 4.0.1 2017-10-11 22:39:02 +02:00
pyup-bot
88319ecc47 Update sphinxcontrib-spelling from 2.3.0 to 4.0.0 2017-10-11 10:22:16 +02:00
pyup-bot
4c0139f253 Update pydocstyle from 2.1.0 to 2.1.1 2017-10-10 11:58:18 +02:00
pyup-bot
fdfdbbb512 Update pydocstyle from 2.0.0 to 2.1.0 2017-10-08 20:02:44 +02:00
pyup-bot
15201d1c7e Update pytest from 3.2.2 to 3.2.3 2017-10-05 10:20:22 +02:00
pyup-bot
da6867c083 Update sphinx from 1.6.3 to 1.6.4 2017-09-28 16:55:38 +02:00
pyup-bot
6153f4778a Update selenium from 3.5.0 to 3.6.0 2017-09-28 16:55:25 +02:00
pyup-bot
58d8a9faa8 Update six from 1.10.0 to 1.11.0 2017-09-18 15:41:21 +02:00
pyup-bot
1a27c3562d Update babel from 2.5.0 to 2.5.1 2017-09-14 13:09:38 +02:00
pyup-bot
b81b7f4d0c Update pytest from 3.2.1 to 3.2.2 2017-09-07 21:01:07 +02:00
Aaron WALKER
c07194e382 Fix incorrect i18n documentation 2017-09-07 16:40:31 +02:00
Phoebe Bright
c4b3fdfbef Add model to AddressForm example
model also seems to be required in widget as shown in test - https://github.com/applegrew/django-select2/blob/master/tests/testapp/forms.py
2017-08-31 00:27:21 +02:00
pyup-bot
2000395c3b Update babel from 2.4.0 to 2.5.0 2017-08-18 11:41:13 +02:00
pyup-bot
8911ad91b2 Update redis from 2.10.5 to 2.10.6 2017-08-17 09:18:33 +02:00
pyup-bot
5dec946658 Update selenium from 3.4.3 to 3.5.0 2017-08-10 17:55:26 +02:00