Commit Graph

12 Commits

Author SHA1 Message Date
Ryan P Kilby 9702e55744 Empty value for CSV should parse as [] 2016-08-10 17:14:57 -04:00
Ryan P Kilby 13286b1524 Fix boolean widget rendering 2016-03-02 11:08:48 -05:00
Ryan P Kilby 69a89efd59 Remove sanitize, differentiate between empty/none
- sanitize does not allow for empty values
- type conversion should happen at the field level
2016-02-04 23:25:42 -05:00
William Stewart f22cb7491f Add CSVWidget 2016-02-04 21:51:15 -05:00
Ryan P Kilby 3d4a4e6ae2 Cleanup imports, deprecations 2015-10-19 03:17:23 -04:00
Adam Bogdał 35292cb9a7 Use widget classes instead of instances 2015-10-07 01:22:37 +02:00
Scott Walton 51b7dab834 Removed the extra filter logic and turned it into a widget that is passed into the filter #268 2015-07-31 12:17:58 +01:00
nkryptic ec169c901c added new tests and refactored some previous tests
* removed tests that essentially covered form/field rendering
* added more edge-case tests (Proxy models, MTI models, filtering through relationships)
* moved most of the tests which performed queryset filtering to new filtering_tests.py
* added "pragma: nocover" in a few places for coverage.py to omit for reporting
* included fix for generic view error inside of ImproperlyConfigured handler
2013-02-26 02:45:30 -05:00
nkryptic c3d51c1005 major refactor of the tests:
* moves tests package to root of project and renames it to test_django_filters
* splits tests.py into multiple files
* removes fixture need by creating instances on the fly
** attempted to use factory_boy instead, but it isn't py3k compatible yet
* uses django-discover-runner to find the test cases

while primarily focused on test refactoring, it also:
* updates runtests.py to allow more flexibility when running tests
* adds a runshell.py which configures django, runs syncdb and loads the test environment shell (in-memory sqlite db)
* adds pip requirements files for new test dependencies
* updates MANIFEST.in for test package split
* uses py3k compatible relative imports when possible
* removes XMLField handling, since we only support Django >= 1.4
* removes unnecessary code to get length on MultipleChoiceField's choices when filtering
* updates code for pep8 and pyflakes adherence
2013-02-18 20:07:28 -05:00
Xavier Ordoquy d040f2da4d py3k port. 2012-12-13 00:21:25 +01:00
Florian Apolloner 93400abca0 A bit of PEP008 compat and more fixes for Django 1.5. 2012-09-17 11:09:15 +02:00
Alex Gaynor 225aad0808 BACKWARDS INCOMPATIBLE CHANGE: Renamed the module from filter to django_filters, now it doesn't contend with the Python builtin filter. 2009-08-12 18:00:00 -05:00