Skip to content

default emil to null instead of empty string in normalize_email #58

@amirreza8002

Description

@amirreza8002

Code of Conduct

  • I agree to follow Django's Code of Conduct

Feature Description

hi
so as you know normalize_email converts falsy emails into an empty string

this is documented and i did this pr on it.

but even now, i do think it'd be much better if it just used None

one example of this causing problem, is when you have unique=True,
as you know, empty strings are counted when you have unique=True, so if one used doesn't provide an email, all other users are forced to provide one, unless we change how users are made manually

Problem

it'd be good to allow unique values by default

Request or proposal

request

Additional Details

No response

Implementation Suggestions

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Idea

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions