Skip to content

"Model method does not exist" solution can be improved #52

Open
@os-nikita

Description

@os-nikita

If the model is brand new, hasn't been created yet (not model.is_created() == True), then trying to access a property on the model like if not user.picture: ... will result in this error. The solution offered can be confusing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    solution-requestRequest a solution be created for an exception

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions