Permalink
Browse files

Fixed error in ManyToManyField.deconstruct().

  • Loading branch information...
1 parent f463789 commit 54d9e3ccf6dd16f76fc9852edc19e4007e26dd7a @bmispelon bmispelon committed Dec 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/models/fields/related.py
@@ -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.

0 comments on commit 54d9e3c

Please sign in to comment.