Skip to content

Commit

Permalink
Fixed error in ManyToManyField.deconstruct().
Browse files Browse the repository at this point in the history
  • Loading branch information
bmispelon committed Dec 6, 2013
1 parent f463789 commit 54d9e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/db/models/fields/related.py
Expand Up @@ -1476,7 +1476,7 @@ def deconstruct(self):
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.
Expand Down

0 comments on commit 54d9e3c

Please sign in to comment.