Kaydet (Commit) 54d9e3cc authored tarafından Baptiste Mispelon's avatar Baptiste Mispelon

Fixed error in ManyToManyField.deconstruct().

üst f463789f
......@@ -1476,7 +1476,7 @@ class ManyToManyField(RelatedField):
name, path, args, kwargs = super(ManyToManyField, self).deconstruct()
# Handle the simpler arguments
if self.rel.db_constraint is not True:
kwargs['db_constraint'] = self.db_constraint
kwargs['db_constraint'] = self.rel.db_constraint
if "help_text" in kwargs:
del kwargs['help_text']
# Rel needs more work.
......
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