Skip to content

Strange behavior with empty or None #456

@alexandre-fundcraft

Description

@alexandre-fundcraft

I've seen the problem, and I know how to solve the problem, it is just a question.
Is it normal return an instance with empty attributes Country(code=None) or Country(code='')?
I whould like to know the reason for this behavior if it is possible.
My approach is return None (I don't use empty strings)

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions