djangorestframework 3.15 support
- Add
ValidationError
params=
argument &default_params
attribute by @intgr in #338 - Add
SimpleRouter
use_regex_path
argument by @intgr in #344 - Add
construct_search
function queryset argument forSearchFilter
by @saJaeHyukc in #574 - Add
get_field_name
function ofAutoSchema
by @saJaeHyukc in #575 - Move
fields.set_value
toSerializer.set_value
by @saJaeHyukc in #576 - Remove
compat.distinct
function by @saJaeHyukc in #579 - Add
fields.logging
by @saJaeHyukc in #581 - Add
RemovedInDRF317Warning
by @saJaeHyukc in #578 - Add
DecimalField
normalize_output
argument by @saJaeHyukc in #584 - Add
serializers.LIST_SERIALIZER_KWARGS_REMOVE
by @saJaeHyukc in #580 - Add
represent_timedelta
, a function related toCustomScalar
by @saJaeHyukc in #586 - Add
is_already_registered
function ofBaseRouter
by @saJaeHyukc in #587 - Add
__class_getitem__
of classes by @saJaeHyukc in #585 - Add
optional_logout
csrf_token
argument by @saJaeHyukc in #589 - Add
run_child_validation
function ofListSerializer
by @saJaeHyukc in #590 - Add
filters.search_smart_split
by @saJaeHyukc in #592 - Add functions related to
UniqueConstraint
by @saJaeHyukc in #591
Stubs changes
- allow floats for _GetDataType by @asottile-sentry in #546
- Use
Pattern[str]
forRegexField
by @Viicos in #539 - Fixed
ModelSerializer.build_standard_field(model_field=)
parameter typing by @noamkush in #541 - Make
HyperlinkedRelatedField(view_name=)
&HyperlinkedIdentityField(view_name=)
param optional by @Alexerson in #530 - Allow passing
None
,empty
toModelSerializer.__init__()
default=
andinitial=
kwargs by @intgr in #521 - Add
ViewSetAction.__name__
attribute by @igorgaming in #567 - Make
HyperlinkedModelSerializer
generic by @intgr in #595 - Fix
HyperlinkedRelatedField.get_object()
argument types by @intgr in #597 - Allow
None
forListField.min/max_length
by @Viicos in #601
Housekeeping
- Omit authtoken.migration of allowlist_todo by @saJaeHyukc in #583
- Tests: Fix test after django-stubs StrPromise changes by @intgr in #518
- Update
pre-commit
by @sobolevn in #550 - Bump
pytest-mypy-plugins
andmypy
by @sobolevn in #557 - Use explicit target versions for black by @sobolevn in #558
- Update DRF to 3.15.0 by @sobolevn in #560
- Clean mypy cache on each run of
stubtest
by @intgr in #562 - Fix and enable Ruff lints PYI002, PYI026 by @intgr in #496
- Update djangorestframework to 3.15.1 by @sobolevn in #565
- Fix CI: suppress mypy errors in test suite that come from 3rd party packages by @intgr in #596
- CI: Run tests daily to detect incompatible django-stubs changes by @intgr in #519
- Version 3.15.0 release by @intgr in #605
New Contributors
- @asottile-sentry made their first contribution in #546
- @Viicos made their first contribution in #539
- @Alexerson made their first contribution in #530
- @igorgaming made their first contribution in #567
- @saJaeHyukc made their first contribution in #574
Full Changelog: 3.14.5...3.15.0