Skip to content

Switching from str to UUID, max_length creates issues in generated code #7

@henriklindgren

Description

@henriklindgren

Reproduce by setting up a str attribute
image
switching it to UUID without removing max_length
image

Results in:
Required(UUID, 255, unique=True, default=uuid4). causing TypeError: Unexpected positional argument for attribute Model.some_id: 255

Fixable by moving back to str and removing offending field, or editing manually.

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