Changes between Initial Version and Version 2 of Ticket #17803


Ignore:
Timestamp:
Mar 3, 2012, 2:23:18 PM (13 years ago)
Author:
Ramiro Morales
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17803

    • Property Resolutionworksforme
    • Property Status newclosed
  • Ticket #17803 – Description

    initial v2  
    22
    33If I have this in my model:
     4{{{
     5    account_type = models.CharField(_('Type of Business'), max_length=25, blank=True, null=True, help_text='What would your heading in a Directory be')
     6}}}
     7The in a model form the field name is "Account type" and there is no help text.
    48
    5     account_type = models.CharField(_('Type of Business'), max_length=25, blank=True, null=True, help_text='What would your heading in a Directory be')
    6 
    7 The in a model form the field name is "Account type" and there is no help text
    89If I change it to:
    9 
     10{{{
    1011    accounttype = models.CharField(_('Type of Business'), max_length=25, blank=True, null=True, help_text='What would your heading in a Directory be')
    11 
     12}}}
    1213Form correctly has label of Type of Business and help text is displayed.
    1314
     
    1516
    1617This is the form:
     18{{{
    1719class NameForm(forms.ModelForm):
    18    
    1920
    2021    class Meta:
    2122        model = Account
    2223        fields = ('name', 'contact_details','accounttype','turnover')
    23 
     24}}}
    2425And this is another field with an underscore and it displays the label and help text correctly:
    25 
     26{{{
    2627    contact_details = models.TextField(_('Contact and Name'), blank=True, null=True, help_text='Actual Business Name and email/telephone if different from yours.')
    27 
    28 
    29 
    30 
     28}}}
    3129
    3230I can dig some more if this might be a bug.....
Back to Top