1👍
✅
The result of the query on your database is a QuerySet. You use the dot notation to access the fields in your model:
res[i].name
Source:stackexchange.com
1👍
The result of the query on your database is a QuerySet. You use the dot notation to access the fields in your model:
res[i].name