Commit fceacd83 by Fernando Rocha

Fix processing of ManyToManyField when it is empty

Signed-off-by: Fernando Rocha <fernandogrd@gmail.com>
parent 1929159d
......@@ -148,7 +148,7 @@ class ManyRelatedMixin(object):
value = data.getlist(self.source or field_name)
except:
# Non-form data
value = data.get(self.source or field_name)
value = data.get(self.source or field_name, [])
else:
if value == ['']:
value = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment