… - template tag - ifchanged - template tag - IGNORABLE_404_URLS - setting - ImageField (class in django.db.models) - (class in django.forms) - ImageFile (class in django.core.files.images) - import_epsg() (SpatialReference method) - import_proj() (SpatialReference method) - import_string() (in module django.utils.module_loading) - …
669 sections in Django 5.1 Search all versions →
… - EMAIL_USE_SSL - setting - EMAIL_USE_TLS - setting - email_user() (models.User method) - EmailField (class in django.db.models) - (class in django.forms) - EmailInput (class in django.forms) - EmailMessage (class in django.core.mail) - EmailMultiAlternatives (class in django.core.mail) - EmailValidator (class in …
… | | --- | --- | | - Radians (class in django.db.models.functions) - radio_fields (ModelAdmin attribute) - RadioSelect (class in django.forms) - raise_exception (AccessMixin attribute) - random - template filter - Random (class in django.db.models.functions) - RandomUUID (class in django.contrib.postgres.functions) …
… (File method) - (LayerMapping method) - (Model method) - (Storage method) - save_as (ModelAdmin attribute) - save_as_continue (ModelAdmin attribute) - save_formset() (ModelAdmin method) - save_model() (ModelAdmin method) - save_on_top (ModelAdmin attribute) - save_related() (ModelAdmin method) - savepoint() (in module django.db.transaction) …
… fid (Feature attribute) - field - (BoundField attribute) - Field (class in django.contrib.gis.gdal) - (class in django.db.models) - (class in django.forms) - field (ModelChoiceIterator attribute) - field lookup type - arrayfield.contained_by - arrayfield.contains - arrayfield.index - arrayfield.len - arrayfield.overlap - …
Reference Form fields Built-in Field classes
classEmailField(**kwargs)[source] : - Default widget: EmailInput - Empty value: Whatever you’ve given as empty_value. - Normalizes to: A string. - Uses EmailValidator to validate that the given value is a valid email address, using a moderately complex regular expression.
Reference Form fields Built-in Field classes
classSlugField(**kwargs)[source] : - Default widget: TextInput - Empty value: Whatever you’ve given as empty_value. - Normalizes to: A string. - Uses validate_slug or validate_unicode_slug to validate that the given value contains only letters, numbers, underscores, and hyphens.
Reference Form fields Built-in Field classes
classURLField(**kwargs)[source] : - Default widget: URLInput - Empty value: Whatever you’ve given as empty_value. - Normalizes to: A string. - Uses URLValidator to validate that the given value is a valid URL. - Error message keys: required, invalid
Reference Form fields Built-in Field classes
classDecimalField(**kwargs)[source] : - Default widget: NumberInput when Field.localize is False, else TextInput. - Empty value: None - Normalizes to: A Python decimal. - Validates that the given value is a decimal.
Reference Form fields Built-in Field classes
classFloatField(**kwargs)[source] : - Default widget: NumberInput when Field.localize is False, else TextInput. - Empty value: None - Normalizes to: A Python float. - Validates that the given value is a float.
Reference PostgreSQL specific form fields and widgets Fields
classHStoreField : A field which accepts JSON encoded data for an HStoreField. It casts all values (except nulls) to strings. It is represented by an HTML <textarea>.
Release notes Django 2.0 release notes What’s new in Django 2.0Minor features
The new ProhibitNullCharactersValidator disallows the null character in the input of the CharField form field and its subclasses. Null character input was observed from vulnerability scanning tools.
Release notes Django 4.1 release notes What’s new in Django 4.1Minor features
The new StepValueValidator checks if a value is an integral multiple of a given step size. This new validator is used for the new step_size argument added to form fields representing numeric values.
Release notes Django 1.4.21 release notes
You might also want to validate that any existing data in your application doesn’t contain unexpected newlines. validate_ipv4_address(), validate_slug(), and URLValidator and their usage in the corresponding form fields GenericIPAddresseField, IPAddressField, SlugField, and URLField are also affected.
Release notes Django 1.7.9 release notes
… unexpected newlines. validate_ipv4_address(), validate_slug(), and URLValidator are also affected, however, as of Django 1.6 the GenericIPAddresseField, IPAddressField, SlugField, and URLField form fields which use these validators all strip the input, so the possibility of newlines entering your data only exists …
Release notes Django 1.8.3 release notes
… unexpected newlines. validate_ipv4_address(), validate_slug(), and URLValidator are also affected, however, as of Django 1.6 the GenericIPAddresseField, IPAddressField, SlugField, and URLField form fields which use these validators all strip the input, so the possibility of newlines entering your data only exists …
Release notes Django 1.4 release notes What’s new in Django 1.4
Django 1.4 can now better handle IPv6 addresses with the new GenericIPAddressField model field, GenericIPAddressField form field and the validators validate_ipv46_address and validate_ipv6_address.
Release notes Django 2.1.4 release notes
Corrected the default password list that CommonPasswordValidator uses by lowercasing all passwords to match the format expected by the validator (#29952).
Release notes Django 1.11 release notes What’s new in Django 1.11Minor features
(This validator moved to the form field in Django 1.11.2.) Added support for time truncation to Trunc functions. Added the ExtractWeek function to extract the week from DateField and DateTimeField and exposed it through the week lookup.
Release notes Django 2.2.22 release notes
Moreover, the URLField form field which uses URLValidator silently removes newlines and tabs on Python 3.9.5+, so the possibility of newlines entering your data only existed if you are using this validator outside of the form fields.