Changes between Initial Version and Version 1 of Ticket #10449


Ignore:
Timestamp:
Mar 9, 2009, 10:51:16 AM (15 years ago)
Author:
Alex Gaynor
Comment:

Please use the preview button.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10449 – Description

    initial v1  
    66
    77Models.py
     8{{{
    89from django.utils import translation
    910from django.utils.translation import ugettext_lazy as _
     
    1415    (30, _('Other feedback')),
    1516)
    16 
     17}}}
    1718This is then used in a form:
     19{{{
    1820class HelpFeedbackForm(forms.Form):
    1921        #form for user to submit their feedback when not logged in
    2022                subject = forms.CharField(widget=forms.Select(choices=SUBJECT))
    21 
     23}}}
    2224This is then presented in the template as:
    2325{{ form.subject }}
Back to Top