scipost.fields module¶
-
class
scipost.fields.
ChoiceArrayField
(base_field, size=None, **kwargs)[source]¶ Bases:
django.contrib.postgres.fields.array.ArrayField
A field that allows us to store an array of choices. Uses Django 1.9’s postgres ArrayField and a MultipleChoiceField for its formfield.
-
class
scipost.fields.
ReCaptchaField
(use_ssl=None, attrs=None, *args, **kwargs)[source]¶ Bases:
django.forms.fields.CharField
-
default_error_messages
= {'captcha_error': 'Error verifying input, please try again.', 'captcha_invalid': 'Incorrect, please try again.'}¶
-