[Answered ]-Using django model data in a bootstrap template

1👍

After puzzling with it for forever I figured out the answer right after I posted the question, which in hindsight should be obvious. Posting here in case anyone else stumbles across this.

html ids cannot contain whitespace, and the saga.name I was using contained whitespace. Still not sure why {{forloop.counter}} didn’t work, but I got around it by adding a method to my model that returned the name in an accepted way.

Leave a comment