Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kigawas committed Sep 1, 2020
1 parent 0c3bf03 commit bdeafad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/gino/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,13 @@ 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)
Expand Down

0 comments on commit bdeafad

Please sign in to comment.