소스 검색

Fixed allow_migrate() signature in router examples.

Adrian Andreias 10 년 전
부모
커밋
937643a1f2
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      docs/topics/db/multi-db.txt

+ 2 - 2
docs/topics/db/multi-db.txt

@@ -314,7 +314,7 @@ send queries for the ``auth`` app to ``auth_db``::
                return True
             return None
 
-        def allow_migrate(self, db, app_label, model, **hints):
+        def allow_migrate(self, db, app_label, model=None, **hints):
             """
             Make sure the auth app only appears in the 'auth_db'
             database.
@@ -352,7 +352,7 @@ from::
                 return True
             return None
 
-        def allow_migrate(self, db, app_label, model, **hints):
+        def allow_migrate(self, db, app_label, model=None, **hints):
             """
             All non-auth models end up in this pool.
             """