It’s very difficult to help you without seeing your code, or knowing what you are trying to achieve exactly, but it appears that you are passing your context a queryset that returns a list of students when you want to pass it… a single student instance?
I recommend familiarizing yourself with the QuerySet API methods, and which ones return querysets and which ones return something else. If you want a single instance, you want to use a method that returns only one instance, like get
, first
, etc.
Side notes first:
-
Please do not post images here unless it’s absolutely necessary. It’s greatly preferred for you to copy/paste text - surrounded between lines of three backtick - ` characters.
-
When you’re asking for help, you need to post the code with which you are requesting assistance. For template-related issues, that generally means including the Model, View, and the template involved.
-
When posting code (or templates, error messages, etc), surround that code between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```.
In addition to the previous response, I would suggest that you start out by working your way through the official Django tutorial. It’s going to give you a lot of information that you will need as you start to learn Django.