Kaydet (Commit) 44169a00 authored tarafından Baptiste Mispelon's avatar Baptiste Mispelon

Removed unnecessary code in ManyToManyField.deconstruct()

üst 74325339
...@@ -2142,8 +2142,6 @@ class ManyToManyField(RelatedField): ...@@ -2142,8 +2142,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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment