Fix 'set() is not JSON serializable' for django 1.6