[1.7.x] Removed unnecessary code in ManyToManyField.deconstruct()

Backport of 44169a00c1 from master.
This commit is contained in:
Baptiste Mispelon 2014-08-03 15:15:24 +02:00
parent 27b7783fbe
commit 2c5eee9f88
1 changed files with 0 additions and 2 deletions

View File

@ -2092,8 +2092,6 @@ class ManyToManyField(RelatedField):
kwargs['db_table'] = self.db_table kwargs['db_table'] = self.db_table
if self.rel.db_constraint is not True: if self.rel.db_constraint is not True:
kwargs['db_constraint'] = self.rel.db_constraint kwargs['db_constraint'] = self.rel.db_constraint
if "help_text" in kwargs:
del kwargs['help_text']
# Rel needs more work. # Rel needs more work.
if isinstance(self.rel.to, six.string_types): if isinstance(self.rel.to, six.string_types):
kwargs['to'] = self.rel.to kwargs['to'] = self.rel.to