X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/cec32849d48d9e36c030224e2eb9631d31ef17a2..a6694613ce70707661b795a121ef126b11c1777a:/philo/forms/fields.py diff --git a/philo/forms/fields.py b/philo/forms/fields.py index b148947..66b96ad 100644 --- a/philo/forms/fields.py +++ b/philo/forms/fields.py @@ -1,6 +1,7 @@ from django import forms from django.core.exceptions import ValidationError from django.utils import simplejson as json + from philo.validators import json_validator @@ -8,6 +9,7 @@ __all__ = ('JSONFormField',) class JSONFormField(forms.Field): + """A form field which is validated by :func:`philo.validators.json_validator`.""" default_validators = [json_validator] def clean(self, value):