How do I write a numeric for loop in a Django template? I mean something like
for
for i = 1 to n
If the number is coming from a model, I found this to be a nice patch to the model:
def iterableQuantity(self): return range(self.quantity)