Skip to main content

django-restricted-fields

Usage

Add this package to your virtual environment. In your Django application's forms.py, import the field(s) you want to use (currently only RestrictedDateField and RestrictedDateTimeField). These offer additional options:

  • future_allowed=False – inhibit the input of dates / times that are in the future

  • past_allowed=False – inhibit the input of dates / times that are in the past

  • min_value=X, max_value=X – inhibit the input of dates / times before / after X, where X can be a Python date / datetime value or a callable that returns such a value

Most browsers will display a date and / or time picker whose range is limited by these options.

Other than with Django's native fields, dates (and times) should be formatted according to the locale settings of the browser (which normally is the right thing to do).

Release files for django-restricted-fields 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-restricted-fields 0.4.2
File Size Uploaded
django_restricted_fields-0.4.2.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-restricted-fields 0.4.2
File Interpreter ABI Platform
django_restricted_fields-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.3 kB

Release files / django_restricted_fields-0.4.2.tar.gz

Download URL django_restricted_fields-0.4.2.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
87fcac931398b4b225f0f96261c7bd0abf8edb8be5adacfbdc43f19520edc44a
BLAKE2b-256 checksum
How to use checksums
8510ab3218decdc20a2a74459ed4dc34a22597d29304fac82985b4c76b867c36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.15

Release files / django_restricted_fields-0.4.2-py3-none-any.whl

Download URL django_restricted_fields-0.4.2-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58b4d66ca0248da4ce3afc08f61aa1ae907138daf2f1ac6f9c4dd5a4e4a45068
BLAKE2b-256 checksum
How to use checksums
752a88b812c87436b2adbeb70eedc7971b1d3ac450dcaa796fe3a23a1e3bad74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.15

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page