When Django was upgraded to 1.11 in #321, the QueryDict that gets passed
into NsotSerializer.to_internal_value() became immutable. In cases
where the site ID would get set on that QeueryDict, this would cause an
exception to get thrown (modifying an immutable object).
This fixes that issue and makes a mutable copy of the QueryDict before
trying to set the site field.
When Django was upgraded to 1.11 in #321, the QueryDict that gets passed into
NsotSerializer.to_internal_value()
became immutable. In cases where the site ID would get set on that QeueryDict, this would cause an exception to get thrown (modifying an immutable object).This fixes that issue and makes a mutable copy of the QueryDict before trying to set the site field.