QueryDict is immutable. Create a copy before trying to change it.