summaryrefslogtreecommitdiff
path: root/nop/dbrouter.py
blob: fd8aaadd0336aa638dcf36b9b390607751937471 (plain)
1
2
3
4
5
class NopRouter(object):
    def allow_migrate(self, db, app_label, model_name=None, **hints):
        if app_label == 'nop':
            return db == 'nop'
        return None