Skip to content

Commit

Permalink
Removed unused args in Index.clone().
Browse files Browse the repository at this point in the history
  • Loading branch information
atombrella authored and timgraham committed Mar 17, 2018
1 parent f8b98f0 commit 77609f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/db/models/indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def deconstruct(self):

def clone(self):
"""Create a copy of this Index."""
path, args, kwargs = self.deconstruct()
return self.__class__(*args, **kwargs)
_, _, kwargs = self.deconstruct()
return self.__class__(**kwargs)

@staticmethod
def _hash_generator(*args):
Expand Down

0 comments on commit 77609f9

Please sign in to comment.