Changes between Initial Version and Version 1 of Ticket #18133


Ignore:
Timestamp:
04/15/12 19:32:08 (3 years ago)
Author:
russellm
Comment:

Fixed formatting of the ticket description. Please use preview.

Again, as with #18134, you've suggested a solution that modifies API, but you haven't described the problem you're trying to solve, or the effect that the new label_suffix would have.

Closing invalid; feel free to reopen if you care to provide more details.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18133

    • Property Status changed from new to closed
    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Needs documentation unset
    • Property Resolution changed from to invalid
  • Ticket #18133 – Description

    initial v1  
    11hi, would it be possible to make label_suffix settable in settings file? now, if i want to change the suffix for the whole site, i have to have in my code something like this:
    2 
     2{{{
    33class MyModelForm(forms.ModelForm):
    44
     
    88        super(MyModelForm, self).__init__(data, files, auto_id, prefix, initial,
    99                                            error_class, label_suffix, empty_permitted, instance)
    10 
    11 
     10}}}
     11{{{
    1212class MyForm(forms.Form):
    1313
     
    1717        super(MyForm, self).__init__(data, files, auto_id, prefix, initial,
    1818                                            error_class, label_suffix, empty_permitted)
    19 
     19}}}
    2020and then inherit all my forms from this classes. But this is rather a way around then a solution. Anyways it doesn't feel pretty.
    2121Thank you.
Back to Top