Changes between Initial Version and Version 2 of Ticket #17803
- Timestamp:
- Mar 3, 2012, 2:23:18 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17803
- Property Resolution → worksforme
- Property Status new → closed
-
Ticket #17803 – Description
initial v2 2 2 3 3 If 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 }}} 7 The in a model form the field name is "Account type" and there is no help text. 4 8 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 text8 9 If I change it to: 9 10 {{{ 10 11 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 }}} 12 13 Form correctly has label of Type of Business and help text is displayed. 13 14 … … 15 16 16 17 This is the form: 18 {{{ 17 19 class NameForm(forms.ModelForm): 18 19 20 20 21 class Meta: 21 22 model = Account 22 23 fields = ('name', 'contact_details','accounttype','turnover') 23 24 }}} 24 25 And this is another field with an underscore and it displays the label and help text correctly: 25 26 {{{ 26 27 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 }}} 31 29 32 30 I can dig some more if this might be a bug.....