I want to access the data from the model but specific data
like I am writing the code in python below i want it to implement in django template
and model used is grade
for i in range(1,20):
c = "metalc"+str(i)
n = "metaln" + str(i)
if(grade.c!=0 and grade.n!=0)
{{ grade.c }} {{ grade.n }}
like this