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

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.3.1
File Size Uploaded Provenance Actions
django_restricted_fields-0.3.1.tar.gz 6.7 kB Without provenance Details for django_restricted_fields-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 12.0 kB

Release files / django_restricted_fields-0.3.1.tar.gz

Download URL django_restricted_fields-0.3.1.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
64b5f29f878a85ed8c28dd32a2b7630c41d216df87b4036d01c5821cb74bb136
BLAKE2b-256 checksum
How to use checksums
336e17726ccc50ae855685d1fe3221f0dc0b2b93d463d19a0c3417e14604cd2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

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

Download URL django_restricted_fields-0.3.1-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd40366b99e50f47b8d62aafa1053626136f8c365c0d4dff9095853409d4fd28
BLAKE2b-256 checksum
How to use checksums
6b32c126760d4ed08948fae2aec7ac53e5e353ad32cf594c86994c9b51df4838
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Security for django-restricted-fields 0.3.1

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