We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents effe078 + 9fe4ad3 commit 31cad66Copy full SHA for 31cad66
peewee_async.py
@@ -353,9 +353,7 @@ def _swap_database(self, query):
353
If query database can't be swapped and differs from manager's
354
database, it's **WRONG AND DANGEROUS**, so assertion is raised.
355
"""
356
- if query.database == self.database or \
357
- (isinstance(query.database, peewee.Proxy) and
358
- query.database.obj == self.database):
+ if query.database == self.database:
359
return query
360
elif self._subclassed(peewee.PostgresqlDatabase,
361
query.database,
0 commit comments