Skip to content

DateField error when null #2329

@brianmay

Description

@brianmay

Hello,

I have the following datefield:

dob = DateField(allow_null=True, required=False)

When I try to set it to an empty string '' using json input, I get:

dob: [Date has wrong format. Use one of these formats instead: YYYY[-MM[-DD]]]

It wouldn't surprise me if the other date time fields have the same problem.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions