fixing "This QueryDict instance is immutable"