Commit graph

10 commits

Author SHA1 Message Date
Johannes Hoppe
5dfd8553cc Added tests 2015-09-29 13:55:05 +02:00
Johannes Hoppe
6dad55eb11 Upgrade to select2 4.0 2015-09-29 13:55:05 +02:00
Johannes Hoppe
95297a362e Radical removal of all unneeded code 2015-09-29 13:54:23 +02:00
Johannes Hoppe
33b7dffca1 Removed own caching solution in favour of django caching
The old multiprocessing support was hard to maintain.
Since signing and caching are part of `django.core`
there is really no need to stick to our own solution.

As a result multimachine support and security are now always in place.
Fields are stored in Django's cache. The default cache used by select2
is called 'default' but can be cachanged overwriting the setting
`SELECT2_CACHE_BACKEND`.

Recommended cache backends are memcached, redis or a DB-cache.

Refactored AutoResponseView

The main reason for this refactoring is
the fact that the pagingnation was slow.

I dropped major parts of the initial code
and wrote a more django-like-approach.

Noteabley:
- get_results now retuns a QuerySet
- This commit drops django 1.6 support in favour of the JsonResponse (Backporting is possible).
2015-09-29 13:53:29 +02:00
Pawel Iwaszko
77cecbd1cf Added failing test for HeavySelect2MultipleWidget
Closed #175
2015-06-01 10:21:01 +01:00
Ben Cail
2bf42c5bda fix HeavySelect2Widget (with automated test) 2015-04-20 15:31:04 -04:00
Ben Cail
537c8ec40b Select2Widget test: move general error check to the end of the function; test that the select2 results get displayed when the widget is clicked 2015-04-08 08:47:34 -04:00
Ben Cail
28e8b54425 add a failing test for Select2Widget (hashedSelector not defined) 2015-04-06 14:29:13 -04:00
darius BERNARD
0e331d5e33 added unittest for bug #156 2015-03-30 17:00:37 +02:00
Johannes Hoppe
18fa453ac0 Added initial tests 2015-03-29 22:32:19 +02:00