File: passive_hidden.py

package info (click to toggle)
wtforms-components 0.11.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 352 kB
  • sloc: python: 1,582; makefile: 135; sh: 11
file content (10 lines) | stat: -rw-r--r-- 200 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
from wtforms.fields import HiddenField


class PassiveHiddenField(HiddenField):
    """
    HiddenField that does not populate obj values.
    """

    def populate_obj(self, obj, name):
        pass