Change the settings to avoid using Session authentication for rest framework as it raise exceptions in case client and backend are on the same domain
On the filter, adapt to take into account new version of django_filters
import * as types from '../constants/actionTypes';
export const autoSubmit = (state = false, action) => {
switch (action.type) {
case types.USER_TOGGLE_AUTO_SUBMIT:
return action.value;
default:
return state;
}
}
export const online = (state = false, action) => {
switch (action.type) {
case types.STATUS_ONLINE:
return true;
case types.STATUS_OFFLINE:
return false;
default:
return state;
}
}