djangodocs.org

717 sections in Django dev Search all versions →

Range Fields

Reference PostgreSQL specific form fields and widgets Fields

This group of fields all share similar functionality for accepting range data. They are based on MultiValueField. They treat one omitted value as an unbounded range. They also validate that the lower bound is not greater than the upper bound.

error_messages

Reference Model forms Model form Meta API

ModelFormOptions.error_messages : A dictionary that maps a model field name to a dictionary of error message keys (null, blank, invalid, unique, etc.) mapped to custom error messages.

formfield_callback

Reference Model forms Model form Meta API

ModelFormOptions.formfield_callback : A function or callable that takes a model field and returns a django.forms.Field object.

help_texts

Reference Model forms Model form Meta API

ModelFormOptions.help_texts : A dictionary that maps a model field name to a help text string.

labels

Reference Model forms Model form Meta API

ModelFormOptions.labels : A dictionary that maps a model field names to a label string.