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

Respect blank on many to many fields. #3202

Merged
merged 1 commit into from
Jul 31, 2015

Conversation

tomchristie
Copy link
Member

  • When a ManyToManyField is present with blank=False then we map it to allow_empty=False.
  • When a ManyToManyField is present with blank=True then we map it to allow_empty=True.

This ensures that our ModelSerializer behavior is in line with Django's ModelForm behavior.

Closes #2804.

@tomchristie tomchristie added this to the 3.2.0 Release milestone Jul 30, 2015
@tomchristie tomchristie mentioned this pull request Jul 30, 2015
13 tasks
tomchristie added a commit that referenced this pull request Jul 31, 2015
@tomchristie tomchristie merged commit 9a661f5 into master Jul 31, 2015
@tomchristie tomchristie deleted the respect-blank-on-many-to-many branch July 31, 2015 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant