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