diff --git a/django/db/models/base.py b/django/db/models/base.py
index 1f7e5f84aa..42581a3e26 100644
a
|
b
|
class Model(metaclass=ModelBase):
|
1322 | 1322 | if len(unique_check) != len(lookup_kwargs): |
1323 | 1323 | continue |
1324 | 1324 | |
1325 | | qs = model_class._default_manager.filter(**lookup_kwargs) |
| 1325 | qs = model_class._default_manager.using(self._state.db).filter(**lookup_kwargs) |
1326 | 1326 | |
1327 | 1327 | # Exclude the current object from the query if we are editing an |
1328 | 1328 | # instance (as opposed to creating a new one) |
… |
… |
class Model(metaclass=ModelBase):
|
1363 | 1363 | ) |
1364 | 1364 | lookup_kwargs[field] = getattr(self, field) |
1365 | 1365 | |
1366 | | qs = model_class._default_manager.filter(**lookup_kwargs) |
| 1366 | qs = model_class._default_manager.using(self._state.db).filter(**lookup_kwargs) |
1367 | 1367 | # Exclude the current object from the query if we are editing an |
1368 | 1368 | # instance (as opposed to creating a new one) |
1369 | 1369 | if not self._state.adding and self.pk is not None: |