MCPcopy
hub / github.com/django/django / db_manager

Method db_manager

django/db/models/manager.py:136–140  ·  view source on GitHub ↗
(self, using=None, hints=None)

Source from the content-addressed store, hash-verified

134 BaseManager.creation_counter += 1
135
136 def db_manager(self, using=None, hints=None):
137 obj = copy.copy(self)
138 obj._db = using or self._db
139 obj._hints = hints or self._hints
140 return obj
141
142 @property
143 def db(self):

Callers 15

get_by_natural_keyMethod · 0.80
create_permissionsFunction · 0.80
get_default_usernameFunction · 0.80
handleMethod · 0.80
_validate_usernameMethod · 0.80
get_content_typeMethod · 0.80
bulk_related_objectsMethod · 0.80
__init__Method · 0.80
_renameMethod · 0.80
build_instanceFunction · 0.80
m2m_convertFunction · 0.80

Calls 1

copyMethod · 0.45

Tested by 15

test_db_selectionMethod · 0.64
test_o2o_separationMethod · 0.64
test_rawMethod · 0.64
test_db_selectionMethod · 0.64
test_m2m_managersMethod · 0.64
test_auth_managerMethod · 0.64
test_dumpdataMethod · 0.64