2👍
✅
snippet_list
should not be defined inside JSONResponse: unindent it.
Note that Django has provided a JSONResponse class since 1.8, there is no need to define your own.
Source:stackexchange.com