Re: Django Template DropDown List

2007-01-28 Thread johnny
I solved it. Problem was this: category_id = models.ForeignKey(Category) which creates category_id_id in mysql table. In the model, remove _id and it should of been: category = models.ForeignKey(Category) Thank you. On Jan 28, 2:04 pm, "johnny" <[EMAIL PROTECTED]> wrote: > I want the categor

Django Template DropDown List

2007-01-28 Thread johnny
I want the category to show up in drop down list, in product app with product_form.html template. In my product_form.html, I have the following: Category: {{ form.category }} {% if form.category.errors %}*** {{ form.category.errors|join:", " }}{% endif %} In my model for product, I sp