Repository navigation
Comparing changes
Open a pull request
base repository: encode/django-rest-framework
base: 3.18.0
head repository: encode/django-rest-framework
compare: 3.18.1
- 15 commits
- 28 files changed
- 13 contributors
Commits on Aug 11, 2026
-
Fix duplicate validation errors for GenericIPAddressField with protoc…
…ol (#10011) * Fix duplicate validation errors for GenericIPAddressField with protocol When a Django model uses GenericIPAddressField(protocol='IPv4') or (protocol='IPv6'), the model field gets a protocol-specific validator (validate_ipv4_address or validate_ipv6_address) from Django. DRF's IPAddressField also adds the same validator via ip_address_validators(), resulting in duplicate error messages. Fix: Remove validate_ipv4_address and validate_ipv6_address from the serializer's validator_kwarg, in addition to the already-removed validate_ipv46_address. Fixes #9645 * Extend test coverage to validate error messages too * Add test with unhashable type validator --------- Co-authored-by: justyou0606 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1f599b1 - Browse repository at this point
Copy the full SHA 1f599b1View commit details
Commits on Aug 12, 2026
-
Configuration menu - View commit details
-
Copy full SHA for dd9f96f - Browse repository at this point
Copy the full SHA dd9f96fView commit details
Commits on Aug 18, 2026
-
Update filtering.md: Add warning about crafted regex filter inputs (#…
…10023) * Update filtering.md: Add warning about crafted regex filter inputs Thanks to syrull for making the team aware. * fixup
Configuration menu - View commit details
-
Copy full SHA for 751a19f - Browse repository at this point
Copy the full SHA 751a19fView commit details
Commits on Sep 1, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 179e8a5 - Browse repository at this point
Copy the full SHA 179e8a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae9fd0c - Browse repository at this point
Copy the full SHA ae9fd0cView commit details
Commits on Sep 3, 2026
-
Add a compatibility setting for ListSerializer error formats (#10027)
* Add ListSerializer error format compatibility setting * Keep ListSerializer dictionary errors as the default --------- Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <[email protected]>Configuration menu - View commit details
-
Copy full SHA for 5668281 - Browse repository at this point
Copy the full SHA 5668281View commit details
Commits on Sep 5, 2026
-
Fix int64 format detection for negative
IntegerFieldminimums in Op……en API schema definition (#9989) * Fix int64 format detection for negative IntegerField minimums * Preserve int coercion for OpenAPI int64 bounds --------- Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f17d70f - Browse repository at this point
Copy the full SHA f17d70fView commit details
Commits on Sep 6, 2026
-
* PR fixed and test added * Update documentation on ListSerializer validation * Set initial_data in run_child_validation() docs example and tests Address review feedback: the documented override left child.initial_data as the entire list forwarded by many_init(), so child-level validation reading self.initial_data would receive the wrong object. Set it per item, matching the pattern in the run_child_validation() docstring. Also add a test covering partial multiple updates, where unprovided field values are read from the instance set by run_child_validation().merging everything to stage * Update uniqueness validator explanation in serializers.md --------- Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <[email protected]>Configuration menu - View commit details
-
Copy full SHA for 4f77428 - Browse repository at this point
Copy the full SHA 4f77428View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3157a6a - Browse repository at this point
Copy the full SHA 3157a6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c92e89 - Browse repository at this point
Copy the full SHA 8c92e89View commit details -
Update pygments requirement from >=2.17,<2.21 to ==2.21.* in the opti…
…onal group across 1 directory (#10026)
Configuration menu - View commit details
-
Copy full SHA for 0406c6e - Browse repository at this point
Copy the full SHA 0406c6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ea695cd - Browse repository at this point
Copy the full SHA ea695cdView commit details
Commits on Sep 7, 2026
-
Reject non-finite values (nan, inf) in FloatField (#9998)
* Reject non-finite values in FloatField.to_internal_value FloatField accepted nan, inf, -inf and overflow-to-inf strings such as "1e400", returning float('nan')/float('inf') instead of raising a ValidationError. It was the only numeric field without a finiteness guard: IntegerField and DecimalField already reject these, as does Django's own forms.FloatField. REST framework renders JSON with allow_nan=False to stay spec-compliant, so a non-finite value accepted here raises "Out of range float values are not JSON compliant" when the object is later serialized, turning a validation gap into a 500 error. Guard to_internal_value with math.isfinite, mirroring DecimalField's is_nan check and Django's forms.FloatField. * Expand IntegerField tests to explicitly test for 'inf' and 'nan' as invalid --------- Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <[email protected]> Co-authored-by: Bruno Alla <[email protected]>Configuration menu - View commit details
-
Copy full SHA for 858f1fc - Browse repository at this point
Copy the full SHA 858f1fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for cb1fb66 - Browse repository at this point
Copy the full SHA cb1fb66View commit details -
Prepare release 3.18.1 (#10036)
* Prepare release 3.18.1 * Fix int64 format detection in OpenAPI schema --------- Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <[email protected]>Configuration menu - View commit details
-
Copy full SHA for dd23495 - Browse repository at this point
Copy the full SHA dd23495View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 3.18.0...3.18.1