mirror of
https://github.com/Hopiu/django.git
synced 2026-04-26 17:54:48 +00:00
Reordered condition to avoid calling allow_migrate() if unneeded.
This commit is contained in:
parent
8fce797830
commit
82aca216e1
1 changed files with 2 additions and 2 deletions
|
|
@ -104,10 +104,10 @@ class Operation(object):
|
|||
if it's a proxy, if it's managed, and if it's swapped out.
|
||||
"""
|
||||
return (
|
||||
router.allow_migrate(connection_alias, model) and
|
||||
not model._meta.proxy and
|
||||
not model._meta.swapped and
|
||||
model._meta.managed
|
||||
model._meta.managed and
|
||||
router.allow_migrate(connection_alias, model)
|
||||
)
|
||||
|
||||
def __repr__(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue