MCPcopy
hub / github.com/django/django / MigrateNothingRouter

Class MigrateNothingRouter

tests/migrations/test_multidb.py:17–23  ·  view source on GitHub ↗

A router that doesn't allow migrating.

Source from the content-addressed store, hash-verified

15
16
17class MigrateNothingRouter:
18 """
19 A router that doesn't allow migrating.
20 """
21
22 def allow_migrate(self, db, app_label, **hints):
23 return False
24
25
26class MigrateEverythingRouter:

Callers 1

test_create_model4Method · 0.85

Calls

no outgoing calls

Tested by 1

test_create_model4Method · 0.68