#18133: global settings for label_suffix
-------------------------------------+-------------------------------------
Reporter: Evil Clay | Owner: nobody
<clay.evil@…> | Status: closed
Type: New feature | Version: 1.4
Component: Uncategorized | Resolution: wontfix
Severity: Normal | Triage Stage:
Keywords: | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Evil Clay <clay.evil@…>):
Replying to [comment:10 carljm]:
> Replying to [comment:9 Evil Clay <clay.evil@…>]:
> > 1. add a proper kwargs solution to this ticket (you you write it, i
can test it in my current project)
>
> {{{
> class MyForm(forms.Form):
> def __init__(self, *args, **kwargs):
> kwargs.setdefault("label_suffix", "")
> super(MyForm, self).__init__(*args, **kwargs)
> }}}
>
Hi, as promised i did test the code for both inheriting from
forms.ModelForm and forms.Form and both work well. Thank you very much for
this enlightenment. You're Godlike.
--
Ticket URL: <https://code.djangoproject.com/ticket/18133#comment:11>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.