MCPcopy
hub / github.com/django/django / db_for_write

Method db_for_write

tests/multiple_database/tests.py:2268–2270  ·  view source on GitHub ↗
(self, model, **hints)

Source from the content-addressed store, hash-verified

2266 "A router to ensure model arguments are real model classes"
2267
2268 def db_for_write(self, model, **hints):
2269 if not hasattr(model, "_meta"):
2270 raise ValueError
2271
2272
2273@override_settings(DATABASE_ROUTERS=[ModelMetaRouter()])

Callers 1

test_partial_routerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected