Skip to content

fix choices enum: if field can be blank then it isn't required #714

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

Merged
merged 1 commit into from
Aug 1, 2019

Conversation

zbyte64
Copy link
Collaborator

@zbyte64 zbyte64 commented Jul 19, 2019

This is to fix #503 ; When a user defines CharField with blank=True and choices then it should not be marked as required.

One deviation from the proposed solution from the issue is the checking of whether the field as a default value. I am not sure if that is appropriate.

Copy link
Member

@jkimbo jkimbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thanks @zbyte64 !

@jkimbo jkimbo requested review from dopeboy, mvanlonden and phalt July 28, 2019 16:28
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

Successfully merging this pull request may close these issues.

DjangoObjectType interprets string choices fields as required in schema even with blank=True attribute
4 participants