I am generating a form for a model that contains a CharField with choices. According to the documentation I expect to see this translated into a SELECT form field but all I get is a simple TEXT form field:
models.py: class Publication(models.Model): PUBLICATION_TYPES = ( ('B', 'Book'), ('P', 'Periodical'), ('D', 'DVD'), ('C', 'CD'), ('O', 'Other'), ) type = models.CharField(maxlength=1, choices=PUBLICATION_TYPES) ... >>> from django import newforms as forms >>> pubform = forms.form_for_model(Publication) >>> pf = pubform() >>> pf.as_table() u'<tr><th><label for="id_type">Type:</label></th><td><input id="id_type" type="t ext" name="type" maxlength="1" /></td></tr>\n<tr><th>... Any idea? --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---