summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Mispelon <bmispelon@gmail.com>2013-12-06 15:01:36 +0100
committerBaptiste Mispelon <bmispelon@gmail.com>2013-12-06 15:22:52 +0100
commit54d9e3ccf6dd16f76fc9852edc19e4007e26dd7a (patch)
tree32c307bd415dee2a1ef44894a8d6110fde074366
parentf463789f6230c2fccf40c1e410443551bfb205a7 (diff)
Fixed error in ManyToManyField.deconstruct().
-rw-r--r--django/db/models/fields/related.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py
index 1466270e5f..23b508ebb5 100644
--- a/django/db/models/fields/related.py
+++ b/django/db/models/fields/related.py
@@ -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.