make deserialization of client work with django 1.7