(method, apply_to_proxy)
return override
Create partition-aware database_forwards/database_backwards override
Create partition-aware database_forwards/database_backwards override
Create partition - aware database_forwards / database_backwards override
def partitioned_override(method, apply_to_proxy):
    """Create partition-aware database_forwards/database_backwards override"""
    @wraps(method)
    def override(app_label, schema_editor, *args, **kw):
        if is_partition_alias(schema_editor.connection.alias, apply_to_proxy):
            method(app_label, schema_editor, *args, **kw)

    return override
def partitioned_override ( method , apply_to_proxy ) : @ wraps ( method ) def override ( app_label , schema_editor , * args , * * kw ) : if is_partition_alias ( schema_editor . connection . alias , apply_to_proxy ) : method ( app_label , schema_editor , * args , * * kw ) return override