Skip to content

Commit

Permalink
Merge pull request #575 from zevisert/master
Browse files Browse the repository at this point in the history
fix: IndexConstraint should pass kw-args to sqlalchemy
  • Loading branch information
collerek authored Feb 25, 2022
2 parents 4ed267e + a01d147 commit 5718999
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ormar/fields/constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class UniqueColumns(UniqueConstraint):


class IndexColumns(Index):
def __init__(self, *args: Any, name: str = None) -> None:
def __init__(self, *args: Any, name: str = None, **kw: Any) -> None:
if not name:
name = "TEMPORARY_NAME"
super().__init__(name, *args)
super().__init__(name, *args, **kw)

"""
Subclass of sqlalchemy.Index.
Expand Down

0 comments on commit 5718999

Please sign in to comment.