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