2297 fix error when changing stats period

2 jobs from dev_cooperatic in 1 minute 39 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #2725
lint:js

00:23

passed #2726
unit:django

01:15