I\'m trying to refactor this code so with this loop I can avoid repetition and scale the code, but the javascript stops working as I put the django loop
&