Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
henriklindgren opened this issue Jun 7, 2019 · 0 comments

Comments

@henriklindgren
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant