1
0
mirror of https://github.com/django/django.git synced 2025-10-29 00:26:07 +00:00

Refs #28909 -- Simplifed code using unpacking generalizations.

This commit is contained in:
Sergey Fedoseev
2018-09-28 18:57:12 +05:00
committed by Tim Graham
parent 4fc8fb7dda
commit 8ef8bc0f64
33 changed files with 84 additions and 97 deletions

View File

@@ -389,7 +389,7 @@ class Apps:
# to lazy_model_operation() along with the remaining model args and
# repeat until all models are loaded and all arguments are applied.
else:
next_model, more_models = model_keys[0], model_keys[1:]
next_model, *more_models = model_keys
# This will be executed after the class corresponding to next_model
# has been imported and registered. The `func` attribute provides