mirror of
https://github.com/django/django.git
synced 2025-10-25 22:56:12 +00:00
Updated allow_migrate() signature in check framework tests
This commit is contained in:
@@ -313,7 +313,7 @@ class Field(RegisterLookupMixin):
|
||||
def _check_backend_specific_checks(self, **kwargs):
|
||||
app_label = self.model._meta.app_label
|
||||
for db in connections:
|
||||
if router.allow_migrate(db, app_label, model=self.model):
|
||||
if router.allow_migrate(db, app_label, model_name=self.model._meta.model_name):
|
||||
return connections[db].validation.check_field(self, **kwargs)
|
||||
return []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user