mirror of
https://github.com/django/django.git
synced 2024-11-30 07:06:18 +01:00
fc584f0685
Thanks Simon Charette for help.
10 lines
320 B
Python
10 lines
320 B
Python
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
|