summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2014-07-26 09:58:59 -0700
committerAndrew Godwin <andrew@aeracode.org>2014-07-26 09:58:59 -0700
commit37f8a83ad050a1040712876002edcbfc0b057603 (patch)
tree622a53779e881ed25f07626a1554f62544d2884c /django
parent7e708a2536d4828d06f7aa4002fbd5cfc20bef16 (diff)
parent999758fc7a2d6fcb01eb40de937d4420f884788d (diff)
Merge pull request #2977 from abrahammartin/stable/1.7.x
Fixed #23101 db_table wasn't copied in deconstruct
Diffstat (limited to 'django')
-rw-r--r--django/db/models/fields/related.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py
index 78815c2420..2fb6af6c7f 100644
--- a/django/db/models/fields/related.py
+++ b/django/db/models/fields/related.py
@@ -2088,6 +2088,8 @@ class ManyToManyField(RelatedField):
def deconstruct(self):
name, path, args, kwargs = super(ManyToManyField, self).deconstruct()
# Handle the simpler arguments
+ if self.db_table is not None:
+ kwargs['db_table'] = self.db_table
if self.rel.db_constraint is not True:
kwargs['db_constraint'] = self.rel.db_constraint
if "help_text" in kwargs: