diff --git a/docs/topics/db/multi-db.txt b/docs/topics/db/multi-db.txt
index 2b2084a..5dc7655 100644
a
|
b
|
Database routers
|
106 | 106 | |
107 | 107 | A database Router is a class that provides up to four methods: |
108 | 108 | |
109 | | .. method:: db_for_read(model, **hints) |
| 109 | .. method:: db_for_read(self, model, **hints) |
110 | 110 | |
111 | 111 | Suggest the database that should be used for read operations for |
112 | 112 | objects of type ``model``. |
… |
… |
A database Router is a class that provides up to four methods:
|
118 | 118 | |
119 | 119 | Returns None if there is no suggestion. |
120 | 120 | |
121 | | .. method:: db_for_write(model, **hints) |
| 121 | .. method:: db_for_write(self, model, **hints) |
122 | 122 | |
123 | 123 | Suggest the database that should be used for writes of objects of |
124 | 124 | type Model. |
… |
… |
A database Router is a class that provides up to four methods:
|
130 | 130 | |
131 | 131 | Returns None if there is no suggestion. |
132 | 132 | |
133 | | .. method:: allow_relation(obj1, obj2, **hints) |
| 133 | .. method:: allow_relation(self, obj1, obj2, **hints) |
134 | 134 | |
135 | 135 | Return True if a relation between obj1 and obj2 should be |
136 | 136 | allowed, False if the relation should be prevented, or None if |
… |
… |
A database Router is a class that provides up to four methods:
|
138 | 138 | used by foreign key and many to many operations to determine if a |
139 | 139 | relation should be allowed between two objects. |
140 | 140 | |
141 | | .. method:: allow_syncdb(db, model) |
| 141 | .. method:: allow_syncdb(self, db, model) |
142 | 142 | |
143 | 143 | Determine if the ``model`` should be synchronized onto the |
144 | 144 | database with alias ``db``. Return True if the model should be |