mirskutils.forms

forms

class mirskutils.forms.PlaceholderForm(*args, **kwargs)
Description:

the placeholder attribute is common but none of the django widgets include it by default. extending from this form, widgets will take their placeholder attribute value from (in priority order):

  • placeholders object attribute with dictionary name/placeholder pairings
  • from a widget’s label attribute
  • from a widget’s name
class mirskutils.forms.BootstrapForm(*args, **kwargs)

alias for PlaceholderForm as bootstrap 3 styles form-control with placeholders in mind