1π
β
I havenβt ran your code but I see a few mistakes:
- For loop variable name should be changed [or you can change the template variable name] from
jobrun
tojobruns
. Itβs not a good practice to reuse variable names this way. - You need to specify what field of the foreign key needs to be printed in the template. Something like:
{{ jobrun.jobrun_proddt.schmst_proddt|date:βM d, Yβ }}
for the date. As it stands right now, you are returning the objects and not a specific field of the foreign key objects.
π€tr33hous
Source:stackexchange.com