Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: encode/django-rest-framework
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.18.0
Choose a base ref
...
head repository: encode/django-rest-framework
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.18.1
Choose a head ref
  • 15 commits
  • 28 files changed
  • 13 contributors

Commits on Aug 11, 2026

  1. 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]>
    browniebroke and justyou0606 authored Aug 11, 2026
    Configuration menu
    Copy the full SHA
    1f599b1 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2026

  1. Configuration menu
    Copy the full SHA
    dd9f96f View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2026

  1. 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
    peterthomassen authored Aug 18, 2026
    Configuration menu
    Copy the full SHA
    751a19f View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2026

  1. Configuration menu
    Copy the full SHA
    179e8a5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ae9fd0c View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2026

  1. 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]>
    Kub-AT and auvipy authored Sep 3, 2026
    Configuration menu
    Copy the full SHA
    5668281 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2026

  1. Fix int64 format detection for negative IntegerField minimums 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]>
    zainnadeem786 and auvipy authored Sep 5, 2026
    Configuration menu
    Copy the full SHA
    f17d70f View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2026

  1. Fixing issue #9484 (#10033)

    * 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]>
    MehrazRumman and auvipy authored Sep 6, 2026
    Configuration menu
    Copy the full SHA
    4f77428 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3157a6a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8c92e89 View commit details
    Browse the repository at this point in the history
  4. Update pygments requirement from >=2.17,<2.21 to ==2.21.* in the opti…

    …onal group across 1 directory (#10026)
    dependabot[bot] authored Sep 6, 2026
    Configuration menu
    Copy the full SHA
    0406c6e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ea695cd View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2026

  1. 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]>
    3 people authored Sep 7, 2026
    Configuration menu
    Copy the full SHA
    858f1fc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cb1fb66 View commit details
    Browse the repository at this point in the history
  3. 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]>
    github-actions[bot] and auvipy authored Sep 7, 2026
    Configuration menu
    Copy the full SHA
    dd23495 View commit details
    Browse the repository at this point in the history
Loading