Fixes AttributeError("This QueryDict instance is immutable") error