MCPcopy
hub / github.com/django/django / MigrateEverythingRouter

Class MigrateEverythingRouter

tests/migrations/test_multidb.py:26–32  ·  view source on GitHub ↗

A router that always allows migrating.

Source from the content-addressed store, hash-verified

24
25
26class MigrateEverythingRouter:
27 """
28 A router that always allows migrating.
29 """
30
31 def allow_migrate(self, db, app_label, **hints):
32 return True
33
34
35class MigrateWhenFooRouter:

Callers 3

test_create_model4Method · 0.85
_test_run_sqlMethod · 0.85
_test_run_pythonMethod · 0.85

Calls

no outgoing calls

Tested by 3

test_create_model4Method · 0.68
_test_run_sqlMethod · 0.68
_test_run_pythonMethod · 0.68