Fixed error in ManyToManyField.deconstruct().

This commit is contained in:
Baptiste Mispelon 2013-12-06 15:01:36 +01:00
parent f463789f62
commit 54d9e3ccf6
1 changed files with 1 additions and 1 deletions

View File

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