Code

Changes between Initial Version and Version 1 of Ticket #10449


Ignore:
Timestamp:
03/09/09 08:51:16 (5 years ago)
Author:
Alex
Comment:

Please use the preview button.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10449

    • Property Needs documentation unset
    • Property Needs tests unset
    • Property Patch needs improvement unset
  • 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 }}