summaryrefslogtreecommitdiff
path: root/nop/dbrouter.py
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-03-31 14:04:43 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-03-31 15:12:38 (GMT)
commit85f73af7958939a208ce15d3f52937e1a65f3856 (patch)
tree718ec5ac4c3767c151a216641541d96cd5823ca3 /nop/dbrouter.py
parent2ec0ff18396c948b0f1fa9966aeab89bde97cd65 (diff)
migrations for database nop should only be done on nop database
Diffstat (limited to 'nop/dbrouter.py')
-rw-r--r--nop/dbrouter.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nop/dbrouter.py b/nop/dbrouter.py
new file mode 100644
index 0000000..fd8aaad
--- /dev/null
+++ b/nop/dbrouter.py
@@ -0,0 +1,5 @@
+class NopRouter(object):
+ def allow_migrate(self, db, app_label, model_name=None, **hints):
+ if app_label == 'nop':
+ return db == 'nop'
+ return None