0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Removed unnecessary code in ManyToManyField.deconstruct()

This commit is contained in:
Baptiste Mispelon 2014-08-03 15:15:24 +02:00
parent 7432533932
commit 44169a00c1

View File

@ -2142,8 +2142,6 @@ class ManyToManyField(RelatedField):
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:
del kwargs['help_text']
# Rel needs more work.
if isinstance(self.rel.to, six.string_types):
kwargs['to'] = self.rel.to