Skip to content

Instantly share code, notes, and snippets.

@douglasmiranda
Forked from jleeothon/nolabelsuffix.py
Created August 29, 2024 00:06
Show Gist options
  • Select an option

  • Save douglasmiranda/7359868613e57aa7b945d50c81c9eda2 to your computer and use it in GitHub Desktop.

Select an option

Save douglasmiranda/7359868613e57aa7b945d50c81c9eda2 to your computer and use it in GitHub Desktop.

Revisions

  1. @jleeothon jleeothon renamed this gist Sep 14, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @jleeothon jleeothon created this gist Aug 23, 2014.
    8 changes: 8 additions & 0 deletions forms.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    # have all your forms extend this mixin

    class NoLabelSuffixMixin:

    def __init__(self, *args, **kwargs):
    if 'label_suffix' not in kwargs:
    kwargs['label_suffix'] = ''
    super(NoLabelSuffixMixin, self).__init__(*args, **kwargs)