Commit 82aca216 authored by twidi's avatar twidi Committed by Tim Graham
Browse files

Reordered condition to avoid calling allow_migrate() if unneeded.

parent 8fce7978
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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):