Hello. I am having a little trouble retreiving data from my models so that I can use the data in my templates to create a html select. The template creates the html select, but the select is not populated with any options, like I want it to. Thanks in advanced for any and all ideas to get this template to work. Here's my model:
class Game(models.Model): game_name = models.CharField(maxlength=200) class Admin: pass def __str__(self): return self.game_name And here's part of my template: <p> <select name="staticSELECT"> {% for name in game_name %} <option value="{{ forloop.counter }}">{{ name }}</option> {% endfor %} </select> </p> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---