mirror of
https://github.com/django/django.git
synced 2025-08-19 10:10:42 +00:00
Took advantage of the new get_model API. Refs #21702.
This commit is contained in:
parent
3c47786cb9
commit
f901b4d6c8
9 changed files with 29 additions and 40 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue