hi django experts!

May I know how to create templates that has django widgets in it?
please refer to my should-be template output below:
------------------------

Name:  <drop down list that has choices coming from Model.name and the
equivalent value would be name_id>

------------------------
here is the sample model:

class Name(models.Model):
    name_id = models.AutoField(primary_key=True)
    name = models.CharField(max_length=50)

    def __unicode__(self):
        return self.name

Thanks in advance

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to