From a01d1470c407248ce7ee1102b7409c188f821616 Mon Sep 17 00:00:00 2001 From: Zev Isert Date: Thu, 24 Feb 2022 17:12:28 -0800 Subject: [PATCH] fix: IndexConstraint should pass kw-args to sqlalchemy --- ormar/fields/constraints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ormar/fields/constraints.py b/ormar/fields/constraints.py index 435b940..1a0d52e 100644 --- a/ormar/fields/constraints.py +++ b/ormar/fields/constraints.py @@ -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.