We’re going to need a bit more information to be able to provide assistance here.
Please post the view, template, and models involved. (When posting code/templates, enclose it between lines consisting only of three backtick -` characters. This means you’ll have a line that is only ```, followed by your code, followed by another line of ```. Be sure to use the backtick - ` and not the apostrophe - ')
Also, it might be helpful to post the full traceback from the console log rather than a screen image.
(Screen captures / images aren’t always readable on every device.)