Debian Codegraph @

CHANGES.rst

raw
1 Version 25.1 (2025-02-14)
2 -------------------------
3
4 * Removed the in-built API schema generation methods, which have been
5 deprecated since v23.2.
6
7 You should use `drf-spectacular <https://drf-spectacular.readthedocs.io/en/latest/>`_
8 for generating OpenAPI schemas with DRF.
9
10 * Dropped support for EOL Python 3.8.
11
12 * Added testing against Python 3.13.
13
14 * Added official support for Django 5.2.
15
16 Version 24.3 (2024-08-02)
17 -------------------------
18
19 * Adds official support for Django 5.1.
20
21 * Allow using dictionaries for grouped choices on Django 5.0+.
22
23 Thanks to Sævar Öfjörð Magnússon.
24
25 * Adds ``unknown_field_behavior`` FilterSet option to allowing warning and
26 ignore behaviours for unknown field types during FilterSet generation.
27
28 Thanks to Loes.
29
30 Version 24.2 (2024-03-27)
31 -------------------------
32
33 * Fixed a regression in v23.4 where callable choices were incorrectly evaluated
34 at filter instantiation, on Django versions prior to 5.0.
35
36 Thanks to Craig de Stigter for the report and reproduce.
37
38 Version 24.1 (2024-03-08)
39 -------------------------
40
41 * Updated supported Python and Django versions, and resolved upcoming Django
42 deprecations.
43
44 Required versions are now at least Python 3.8 and Django 4.2.
45
46 Thanks to Michael Manganiello.
47
48 * Allowed passing a FilterSet class to the filterset_factory().
49
50 Thanks to Birger Schacht.
51
52 * Set empty default value of filterset data to MultiValueDict.
53
54 Thanks to Shlomo Gordon.
55
56 * Preserve list values passed to the data dict in CSV widgets.
57
58 Thanks to Bryan Brancotte.
59
60 * Updates French and Ukrainian localisations.
61
62 Thanks to Weblate.
63
64
65 Version 23.5 (2023-12-05)
66 -------------------------
67
68 * Fixed OrderingFilter handling of empty values. (#1628)
69
70 Thanks to Matt Munns.
71
72 Version 23.4 (2023-11-20)
73 -------------------------
74
75 * Official support for Django 5.0 and Python 3.12.
76
77 * Fix DeprecationWarning for pkgutil.find_loader.
78
79 Thanks to `wmorrell`.
80
81 * Adopted Furo theme for docs.
82
83 Version 23.3 (2023-9-17)
84 ------------------------
85
86 * Adds initial compatibility with Django 5.0, prior to Django 5.0a1.
87
88 * Updates packaging to use pyproject.toml and Flit.
89
90 Version 23.2 (2023-4-30)
91 ------------------------
92
93 * Deprecated the schema generation methods of the DRF related ``DjangoFilterBackend``.
94 These will be removed in version 25.1.
95
96 You should use `drf-spectacular <https://drf-spectacular.readthedocs.io/en/latest/>`_
97 for generating OpenAPI schemas with DRF.
98
99 * In addition, stopped testing against the (very old now) ``coreapi`` schema generation.
100 These methods should continue to work if you're using them until v25.1, but
101 ``coreapi`` is no longer maintained, and is raising warnings against the current
102 versions of Python. To workaround this is not worth the effort at this point.
103
104 * Updated Polish translations.
105
106 Version 23.1 (2023-3-26)
107 ------------------------
108
109 * Declared support for Django 4.2.
110
111 * Various updated and new translations. Thanks to all who contributed, and
112 Weblate for hosting.
113
114 * Fixed QueryArrayWidget.value_from_datadict() to not mutate input data. (#1540)
115
116 Version 22.1 (2022-6-17)
117 ------------------------
118
119 * Update supported Python and Django versions: minimal Python is now 3.7,
120 minimum Django is now 3.2.
121
122 * Added testing for Python 3.10 and Django 4.1.
123
124 * Removed outdated deprecated warnings for code removed in version 2.1.
125
126 * Removed `filter_class` (use `filterset_class`) and `filter_fields`
127 (`filterset_fields`) that were deprecated in [version 2.0
128 (2018)](https://django-filter.readthedocs.io/en/main/guide/migration.html#view-attributes-renamed-867).
129
130 * The code base is now formatted with Black.
131
132 Version 21.1 (2021-9-24)
133 ------------------------
134
135 This is a maintenance release updating CI testing for the latest
136 non-end-of-life versions of Python and Django, and updating package metadata
137 accordingly.
138
139 With this release ``django-filter`` is switching to a two-part CalVer
140 versioning scheme, such as ``21.1``. The first number is the year. The second
141 is the release number within that year.
142
143 On an on-going basis, Django-Filter aims to support all current Django
144 versions, the matching current Python versions, and the latest version of
145 Django REST Framework.
146
147 Please see:
148
149 * `Status of supported Python branches <https://devguide.python.org/#status-of-python-branches>`_
150 * `List of supported Django versions <https://www.djangoproject.com/download/#support-versions>`_
151
152 Support for Python and Django versions will be dropped when they reach
153 end-of-life. Support for Python versions will dropped when they reach
154 end-of-life, even when still supported by a current version of Django.
155
156 Other breaking changes are rare. Where required, every effort will be made to
157 apply a "Year plus two" deprecation period. For example, a change initially
158 introduced in ``23.x`` would offer a fallback where feasible and finally be
159 removed in ``25.1``. Where fallbacks are not feasible, breaking changes without
160 deprecation will be called out in the release notes.
161
162 Beyond that change, there are few changes. Some small bugfixes, improvements to
163 localisation, and documentation tweaks. Thanks to all who were involved.
164
165
166 Version 2.4.0 (2020-9-27)
167 --------------------------
168
169 * SECURITY: Added a ``MaxValueValidator`` to the form field for
170 ``NumberFilter``. This prevents a potential DoS attack if numbers with very
171 large exponents were subsequently converted to integers.
172
173 The default limit value for the validator is ``1e50``.
174
175 The new ``NumberFilter.get_max_validator()`` allows customising the used
176 validator, and may return ``None`` to disable the validation entirely.
177
178 * Added testing against Django 3.1 and Python 3.9.
179
180 In addition tests against Django main development branch are now required to
181 pass.
182
183
184 Version 2.3.0 (2020-6-5)
185 ------------------------
186
187 * Fixed import of FieldDoesNotExist. (#1127)
188 * Added testing against Django 3.0. (#1125)
189 * Declared support for, and added testing against, Python 3.8. (#1138)
190 * Fix filterset multiple inheritance bug (#1131)
191 * Allowed customising default lookup expression. (#1129)
192 * Drop Django 2.1 and below (#1180)
193 * Fixed IsoDateTimeRangeFieldTests for Django 3.1
194 * Require tests to pass against Django `master`.
195
196
197 Version 2.2 (2019-7-16)
198 -----------------------
199
200 * Added ``DjangoFilterBackend.get_schema_operation_parameters()`` for DRF 3.10+
201 OpenAPI schema generation. (#1086)
202 * Added ``lookup_expr`` to ``MultipleChoiceFilter`` (#1054)
203 * Dropped support for EOL Python 3.4
204
205
206 Version 2.1 (2019-1-20)
207 -----------------------
208
209 * Fixed a regression in ``FilterView`` introduced in 2.0. An empty ``QuerySet`` was
210 incorrectly used whenever the FilterSet was unbound (i.e. when there were
211 no GET parameters). The correct, pre-2.0 behaviour is now restored.
212
213 A workaround was to set ``strict=False`` on the ``FilterSet``. This is no
214 longer necessary, so you may restore `strict` behaviour as desired.
215
216 * Added ``IsoDateTimeFromToRangeFilter``. Allows From-To filtering using
217 ISO-8601 formatted dates.
218
219
220 Version 2.0 (2018-7-13)
221 -----------------------
222
223 2.0 introduced a number of small changes and tidy-ups.
224 Please see the migration guide:
225
226 https://django-filter.readthedocs.io/en/main/guide/migration.html#migrating-to-2-0
227
228 * Added testing for Python 3.7 (#944)
229 * Improve exception message for invalid filter result (#943)
230 * Test QueryDict against CSV filters (#937)
231 * Add `renderer` argument to `render()` method of `BooleanWidget` (#923)
232 * Fix lookups for reverse relationships (#915)
233 * Refactor backend filterset instantiation (#865)
234 * Improve view-related attribute name consistency (#867)
235 * Fix distinct call for range filters (#855)
236 * Fix empty value check for CSV range (#854)
237 * Rework DateRangeFilter (#852)
238 * Added testing for Django 2.1
239 * Rework 'lookup types' handling into LookupChoiceFilter (#851)
240 * Add linting and docs builds to CI (#850)
241 * Use DRF BooleanFilter for NullBooleanField (#844)
242 * Added Brazilian locale (#841)
243 * List Django as a dependency in setup.py (#846)
244 * Keep coverage reports files off version control. (#924)
245 * Update migration docs (#866)
246 * Added be, cs and uk translations. Updated de and ru (#861)
247 * Slovak translation (#886)
248 * Added Django 2.0 support. (#836)
249 * Fix warnings build (#829)
250 * Add greek translation (#827)
251 * Replaced super(ClassName, self) with super() (#821)
252 * Fixed doc URL in utils.deprecate(). (#820)
253 * Added danish translation to django-filter (#809)
254 * Rework validation, add queryset filter method (#788)
255 * Fix Schema warnings (#803)
256 * Update {Range,LookupType}Widgets to use suffixes (#770)
257 * Method signature improvements (#800)
258 * Remove more deprecations (#801)
259 * Drop python 2, Django<1.11 support (#797)
260 * Remove 'Meta.together' option (#791)
261 * [2.x] Remove some deprecations (#795)
262
263
264 Version 1.1 (2017-10-19)
265 ------------------------
266
267 * Add Deprecations for 2.0 (#792)
268 * Improve IsoDateTimeField test clarity (#790)
269 * Fix form attr references in tests (#789)
270 * Simplify tox config, drop python 3.3 & django 1.8 (#787)
271 * Make get_filter_name a classmethod, allowing it to be overriden for each FilterClass (#775)
272 * Support active timezone (#750)
273 * Docs Typo: django_filters -> filters in docs (#773)
274 * Add Polish translations for some messages (#771)
275 * Remove support for Django 1.9 (EOL) (#752)
276 * Use required attribute from field when getting schema fields (#766)
277 * Prevent circular ImportError hiding for rest_framework sub-package (#741)
278 * Deprecate 'extra' field attrs on Filter (#734)
279 * Add SuffixedMultiWidget (#681)
280 * Fix null filtering for *Choice filters (#680)
281 * Use isort on imports (#761)
282 * Use urlencode from django.utils.http (#760)
283 * Remove OrderingFilter.help_text (#757)
284 * Update DRF test dependency to 3.6 (#747)
285
286
287 Version 1.0.4 (2017-05-19)
288 --------------------------
289
290 Quick fix for verbose_field_name issue from 1.0.3 (#722)
291
292
293 Version 1.0.3 (2017-05-16)
294 --------------------------
295
296 Improves compatibility with Django REST Framework schema generation.
297
298 See the `1.0.3 Milestone`__ for full details.
299
300 __ https://github.com/carltongibson/django-filter/milestone/13?closed=1
301
302
303
304 Version 1.0.2 (2017-03-20)
305 --------------------------
306
307 Updates for compatibility with Django 1.11 and Django REST Framework 3.6.
308
309 Adds CI testing against Python 3.6
310
311 See the `1.0.2 Milestone`__ for full details.
312
313 __ https://github.com/carltongibson/django-filter/milestone/12?closed=1
314
315
316 Version 1.0.1 (2016-11-28)
317 --------------------------
318
319 Small release to ease compatibility with DRF:
320
321 * #568 Adds ``rest_framework`` to the ``django_filters`` namespace to allow single
322 ``import django_filters` usage.
323 * A number of small updates to the docs
324
325
326 Version 1.0 (2016-11-17)
327 ------------------------
328
329 This release removes all the deprecated code from 0.14 and 0.15 for 1.0 #480.
330
331 Please see the `Migration Notes`__ for details of how to migrate.
332 Stick with 0.15.3 if you're not ready to update.
333
334 __ https://github.com/carltongibson/django-filter/blob/1.0.0/docs/guide/migration.txt
335
336 The release includes a number of small fixes and documentation updates.
337
338 See the `1.0 Milestone`__ for full details.
339
340 __ https://github.com/carltongibson/django-filter/milestone/8?closed=1
341
342
343 Version 0.15.3 (2016-10-17)
344 ---------------------------
345
346 Adds compatibility for DRF (3.5+) get_schema_fields filter backend
347 introspection.
348
349 * #492 Port get_schema_fields from DRF
350
351
352 Version 0.15.2 (2016-09-29)
353 ---------------------------
354
355 * #507 Fix compatibility issue when not using the DTL
356
357
358 Version 0.15.1 (2016-09-28)
359 ---------------------------
360
361 A couple of quick bug fixes:
362
363 * #496 OrderingFilter not working with Select widget
364
365 * #498 DRF Backend Templates not loading
366
367
368
369 Version 0.15.0 (2016-09-20)
370 ---------------------------
371
372 This is a preparatory release for a 1.0. Lots of clean-up, lots of changes,
373 mostly backwards compatible.
374
375 Special thanks to Ryan P Kilby (@rpkilby) for lots of hard work.
376
377 Most changes should raise a Deprecation Warning.
378
379 **Note**: if you're doing *Clever Things™* with the various filter options
380 — ``filter_overrides`` etc — you may run into an `AttributeError` since these
381 are now defined on the metaclass and not on the filter itself.
382 (See the discussion on #459)
383
384 Summary: Highly Recommended, but take a moment to ensure everything still works.
385
386 * Added the DRF backend. #481
387
388 * Deprecated `MethodFilter` in favour of `Filter.method` #382
389
390 * Move filter options to metaclass #459
391
392 * Added `get_filter_predicate` hook. (Allows e.g. filtering on annotated fields) #469
393
394 * Rework Ordering options into a filter #472
395
396 * Hardened all deprecations for 1.0. Please do see the `Migration Notes`__
397
398 __ https://github.com/carltongibson/django-filter/blob/1.0.0/docs/guide/migration.txt
399
400
401
402 Version 0.14.0 (2016-08-14)
403 ---------------------------
404
405 * Confirmed support for Django 1.10.
406
407 * Add support for filtering on DurationField (new in Django 1.8).
408
409 * Fix UUIDFilter import issue
410
411 * Improve FieldLookupError message
412
413 * Add filters_for_model to improve extensibility
414
415 * Fix limit_choices_to behavior with callables
416
417 * Fix distinct behavior for range filters
418
419 * Various Minor Clean up issues.
420
421
422 Version 0.13.0 (2016-03-11)
423 ---------------------------
424
425 * Add support for filtering by CSV #363
426
427 * Add DateTimeFromToRangeFilter #376
428
429 * Add Chinese translation #359
430
431 * Lots of fixes.
432
433
434 Version 0.12.0 (2016-01-07)
435 ---------------------------
436
437 * Raised minimum Django version to 1.8.x
438
439 * FEATURE: Add support for custom ORM lookup types #221
440
441 * FEATURE: Add JavaScript friendly BooleanWidget #270
442
443 * FIXED: (More) Compatability with Django 1.8 and Django 1.9+
444
445 * BREAKING CHANGE: custom filter names are now also be used for ordering #230
446
447 If you use ordering on a field you defined as custom filter with custom
448 name, you should now use the filter name as ordering key as well.
449
450 Eg. For a filter like :
451
452 class F(FilterSet):
453 account = CharFilter(name='username')
454 class Meta:
455 model = User
456 fields = ['account', 'status']
457 order_by = True
458
459 Before, ordering was like `?o=username`. Since 0.12.0 it's `o=account`.
460
461
462 Version 0.11.0 (2015-08-14)
463 ---------------------------
464
465 * FEATURE: Added default filter method lookup for MethodFilter #222
466
467 * FEATURE: Added support for yesterday in daterangefilter #234
468
469 * FEATURE: Created Filter for NumericRange. #236
470
471 * FEATURE: Added Date/time range filters #215
472
473 * FEATURE: Added option to raise with `strict` #255
474
475 * FEATURE: Added Form Field and Filter to parse ISO-8601 timestamps
476
477
478 Version 0.10.0 (2015-05-13)
479 ---------------------
480
481 * FEATURE: Added ``conjoined`` parameter to ``MultipleChoiceFilter``
482
483 * FEATURE: Added ``together`` meta option to validate fields as a group
484
485 * FIXED: Added testing on Django 1.8
486
487 * FIXED: ``get_model_field`` on Django 1.8
488
489
490 Version 0.9.2 (2015-01-23)
491 --------------------------
492
493 * FIXED: Compatibility with Django v1.8a1
494
495 Version 0.9.1 (2014-12-03)
496 --------------------------
497
498 * FIXED: Compatibility with Debug Toolbar's versions panel
499
500 Version 0.9 (2014-11-28)
501 ------------------------
502
503 * FEATURE: Allow Min/Max-Only use of RangeFilter
504
505 * FEATURE: Added TypedChoiceFilter
506
507 * FIXED: Correct logic for short circuit on MultipleChoiceFilter
508
509 Added `always_filter` attribute and `is_noop()` test to apply short-circuiting.
510
511 Set `always_filter` to `False` on init to apply default `is_noop()` test.
512 Override `is_noop()` for more complex cases.
513
514 * MISC: Version bumping with ``bumpversion``
515
516
517 Version 0.8 (2014-09-29)
518 ------------------------
519
520 * FEATURE: Added exclusion filters support
521
522 * FEATURE: Added `fields` dictionary shorthand syntax
523
524 * FEATURE: Added `MethodFilter`.
525
526 * FIXED: #115 "filters.Filter.filter() fails if it receives [] or () as value"
527
528 * MISC: Various Documentation and Testing improvements
529
530
531
532 Version 0.7 (2013-08-10)
533 ------------------------
534
535 * FEATURE: Added support for AutoField.
536
537 * FEATURE: There is a "distinct" flag to ensure that only unique rows are
538 returned.
539
540 * FEATURE: Support descending ordering (slighty backwards incompatible).
541
542 * FEATURE: Support "strict" querysets, ie wrong filter data returns no results.
543
544 * FIXED: Some translation strings were changed to be in line with admin.
545
546 * FIXED: Support for Django 1.7.
547
548 Version 0.6 (2013-03-25)
549 ------------------------
550
551 * raised minimum Django version to 1.4.x
552
553 * added Python 3.2 and Python 3.3 support
554
555 * added Django 1.5 support and initial 1.6 compatability
556
557 * FEATURE: recognition of custom model field subclasses
558
559 * FEATURE: allow optional display names for order_by values
560
561 * FEATURE: addition of class-based FilterView
562
563 * FEATURE: addition of count() method on FilterSet to prevent pagination
564 from loading entire queryset
565
566 * FIXED: attempts to filter on reverse side of m2m, o2o or fk would
567 raise an error
568
569
570 Version 0.5.4 (2012-11-16)
571 --------------------------
572
573 * project brought back to life