getting error 'NoneType' object is not subscriptable

I was thinking that maybe the class attribute has a different name and/or the html-code has been changed. The code was originally done in Django version2.6. I’ve tried the first option so maybe I’ll look into your other options.