(self, db, app_label, **hints)
| 255 | return obj1._state.db == obj2._state.db |
| 256 | |
| 257 | def allow_migrate(self, db, app_label, **hints): |
| 258 | for router in self.routers: |
| 259 | try: |
| 260 | method = router.allow_migrate |
| 261 | except AttributeError: |
| 262 | # If the router doesn't have a method, skip to the next one. |
| 263 | continue |
| 264 | |
| 265 | allow = method(db, app_label, **hints) |
| 266 | |
| 267 | if allow is not None: |
| 268 | return allow |
| 269 | return True |
| 270 | |
| 271 | def allow_migrate_model(self, db, model): |
| 272 | return self.allow_migrate( |
no outgoing calls
no test coverage detected