scipost.widgets module

class scipost.widgets.SelectButtonWidget(attrs=None, choices=())[source]

Bases: django.forms.widgets.CheckboxSelectMultiple

template_name = 'widgets/checkbox_as_btn.html'
property media
class scipost.widgets.ReCaptcha(public_key, *args, **kwargs)[source]

Bases: django.forms.widgets.Widget

recaptcha_response_name = 'g-recaptcha-response'
recaptcha_challenge_name = 'g-recaptcha-response'
template_name = 'widgets/nocaptcha.html'
value_from_datadict(data, files, name)[source]

Given a dictionary of data and this widget’s name, return the value of this widget or None if it’s not provided.

get_context(name, value, attrs)[source]
property media