WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 2ea0ee3

Browse files
bckohanCopilot
andauthored
Update src/polymorphic/models.py
Co-authored-by: Copilot <[email protected]>
1 parent 13c1778 commit 2ea0ee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/polymorphic/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def accessor_function(self):
208208
except KeyError:
209209
objects = getattr(model, "_base_objects", model.objects)
210210
rel_obj = objects.using(
211-
kwargs.get("using", self._state.db or DEFAULT_DB_ALIAS)
211+
self._state.db or DEFAULT_DB_ALIAS
212212
).get(pk=self.pk)
213213
field.set_cached_value(self, rel_obj)
214214
return rel_obj

0 commit comments

Comments
 (0)