diff options
Diffstat (limited to 'nop/dbrouter.py')
-rw-r--r-- | nop/dbrouter.py | 5 |
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 |