mirror of
https://github.com/django/django.git
synced 2025-10-27 23:56:08 +00:00
Took advantage of the new get_model API. Refs #21702.
This commit is contained in:
@@ -194,7 +194,7 @@ class ModelState(object):
|
||||
# Then, work out our bases
|
||||
try:
|
||||
bases = tuple(
|
||||
(apps.get_model(*base.split(".", 1)) if isinstance(base, six.string_types) else base)
|
||||
(apps.get_model(base) if isinstance(base, six.string_types) else base)
|
||||
for base in self.bases
|
||||
)
|
||||
except LookupError:
|
||||
|
||||
Reference in New Issue
Block a user