Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Duplicated IPAddressField validation errors with ModelSerializer  #3250

@callorico

Description

@callorico

I'm seeing duplicated validation errors being returned from a ModelSerializer for a model containing a GenericIPAddressField on Django 1.8.3 and Python 2.7.9.

{'address': [u'Enter a valid IPv4 or IPv6 address.', u'Enter a valid IPv4 or IPv6 address.']}

It looks like both the validator from the GenericIPAddressField and the validator from the DRF IPAddressField are being called.

#3249

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions