how to use one for loop key with another for loop key in django template

问题内容:

i able to print values from below code in django views

subMarks = []
for item in marks:
    for column in gridHeaderTableData:
        subMark = item[column['sub_exam_name']]
        subMarks.append(subMark)

how to write above code in django templates

问题评论:

2  
Plz don’t ask for code. Share what have you tried and where are you struggling.
2  
Why do you need to do this in the template?

原文地址:

https://stackoverflow.com/questions/47755820/how-to-use-one-for-loop-key-with-another-for-loop-key-in-django-template

Add a Comment