Django fields

URLField

class valedictory.ext.django.URLField(min_length=None, max_length=None, **kwargs)[source]

Accepts a URL as a string.

ForeignKeyField

class valedictory.ext.django.ForeignKeyField(queryset, field='pk', key_type=<class 'int'>, **kwargs)[source]

Accepts foreign keys to a Django model, and returns the model instance when cleaned.

default_error_messages

UploadedFileField

class valedictory.ext.django.UploadedFileField(*, required_types=None, excluded_types=None, type_name=None, **kwargs)[source]

Accepts uploaded files