예제 #1
0
파일: db_routers.py 프로젝트: babsey/webapp
 def allow_syncdb(self, db, model):
     "Make sure the app only appears on the db where it belongs"
     if db in APP_ROUTERS.values() and model._meta.app_label in APP_ROUTERS:
         return APP_ROUTERS[model._meta.app_label] == db
     elif model._meta.app_label in APP_ROUTERS:
         return False
     return None