updated to modify directly in django code; this is necessary for Deserialization (rather than copying Django code)