Changes between Initial Version and Version 1 of Ticket #10449
- Timestamp:
- Mar 9, 2009, 10:51:16 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10449 – Description
initial v1 6 6 7 7 Models.py 8 {{{ 8 9 from django.utils import translation 9 10 from django.utils.translation import ugettext_lazy as _ … … 14 15 (30, _('Other feedback')), 15 16 ) 16 17 }}} 17 18 This is then used in a form: 19 {{{ 18 20 class HelpFeedbackForm(forms.Form): 19 21 #form for user to submit their feedback when not logged in 20 22 subject = forms.CharField(widget=forms.Select(choices=SUBJECT)) 21 23 }}} 22 24 This is then presented in the template as: 23 25 {{ form.subject }}