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

Add allow_empty flag to ListField. #2250

Closed
tomchristie opened this issue Dec 10, 2014 · 2 comments
Closed

Add allow_empty flag to ListField. #2250

tomchristie opened this issue Dec 10, 2014 · 2 comments

Comments

@tomchristie
Copy link
Member

Possible that it might be useful to have an allow_empty flag that could be set to False to disallow empty selections.
Would be for ListField, ListSerializer, MultipleChoiceField and relations

Eg see. #2804.

@tomchristie
Copy link
Member Author

Reckon this is worth having.

@tomchristie tomchristie added this to the 3.1.4 Release milestone Jun 23, 2015
@tomchristie
Copy link
Member Author

Adding a milestone to this to help keep it visible.
May later be dropped or deferred if we don't act on it, but this feature request feels like a good candidate given how widely applicable its use is for relatively little extra complexity.

@xordoquy xordoquy modified the milestones: 3.1.4 Release, 3.1.5 Release Jul 16, 2015
@tomchristie tomchristie changed the title Consider an allow_empty=False flag to fail validation on empty lists. Add allow_empty flag to ListField. Jul 16, 2015
@tomchristie tomchristie modified the milestones: 3.1.4 Release, 3.1.5 Release Jul 16, 2015
@tomchristie tomchristie modified the milestones: 3.1.4 Release, 3.2.0 Release Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants