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).

Metadata

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 Provenance Actions
django_restricted_fields-0.4.2.tar.gz 3.5 kB Without provenance Details for django_restricted_fields-0.4.2.tar.gz

Built distribution (wheel)

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

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

Security for django-restricted-fields 0.4.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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