Took advantage of the new get_model API. Refs #21702.

This commit is contained in:
Aymeric Augustin 2014-01-26 12:57:08 +01:00
parent 3c47786cb9
commit f901b4d6c8
9 changed files with 29 additions and 40 deletions

View file

@ -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: