cache: fix error 500 with new django version
Looks like updating django while deploying last merge broke the website.
This patch is currently deployed in production as a hotfix.
Have a look here https://ae2.utbm.fr/equipe_info/sith/issues/340/?query=is:unresolved