summaryrefslogtreecommitdiff
path: root/tests/migrations/routers.py
blob: 8970d9d681060891bcdc7de345f159ee9e1837b2 (plain)
1
2
3
4
5
6
7
8
9
class TestRouter(object):
    def allow_migrate(self, db, app_label, model_name=None, **hints):
        """
        The Tribble model should be the only one to appear in the 'other' db.
        """
        if model_name == 'tribble':
            return db == 'other'
        elif db == 'other':
            return False