From a8f618e3a9ad09d6b8f8ab3f4fabbde4996318de Mon Sep 17 00:00:00 2001 From: Weiliang Li Date: Tue, 1 Sep 2020 11:27:56 +0900 Subject: [PATCH] fix kwargs --- src/gino/api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gino/api.py b/src/gino/api.py index 807a2f2f..575f5806 100644 --- a/src/gino/api.py +++ b/src/gino/api.py @@ -364,7 +364,10 @@ def __init__( :class:`~sqlalchemy.schema.MetaData`. """ - super().__init__(bind=bind, naming_convention=NAMING_CONVENTION, **kwargs) + preset_kwargs = dict(naming_convention=NAMING_CONVENTION, bind=bind) + preset_kwargs.update(kwargs) + super().__init__(**preset_kwargs) + if model_classes is None: model_classes = self.model_base_classes self._model = declarative_base(self, model_classes)