Name | django-restricted-fields JSON |
Version |
0.3.2
JSON |
| download |
home_page | None |
Summary | Provides date and date/time fields with restrictions for Django forms. |
upload_time | 2024-05-05 12:06:17 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | None |
keywords |
web
django
forms
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
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).
Raw data
{
"_id": null,
"home_page": null,
"name": "django-restricted-fields",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "Detlef Lannert <detlef@lannert.de>",
"keywords": "web, django, forms",
"author": null,
"author_email": "Detlef Lannert <detlef@lannert.de>",
"download_url": "https://files.pythonhosted.org/packages/b8/79/b6cde0592c030981ed34c9e53842f677bcaeed7d9d4c19b5b451700959f2/django_restricted_fields-0.3.2.tar.gz",
"platform": null,
"description": "django-restricted-fields\n========================\n\nUsage\n-----\n\nAdd this package to your virtual environment. In your Django application's `forms.py`,\nimport the field(s) you want to use (currently only `RestrictedDateField` and\n`RestrictedDateTimeField`). These offer additional options:\n\n- `future_allowed=False` \u2013 inhibit the input of dates / times that are in the future\n\n- `past_allowed=False` \u2013 inhibit the input of dates / times that are in the past\n\n- `min_value=X`, `max_value=X` \u2013 inhibit the input of dates / times before / after X,\n where X can be a Python date / datetime value or a callable that returns such a value\n\nMost browsers will display a date and / or time picker whose range is limited by these\noptions.\n\nOther than with Django's native fields, dates (and times) should be formatted according to\nthe locale settings of the browser (which normally is the right thing to do).\n",
"bugtrack_url": null,
"license": null,
"summary": "Provides date and date/time fields with restrictions for Django forms.",
"version": "0.3.2",
"project_urls": {
"Homepage": "https://github.com/detlefla/django-restricted-fields",
"Issues": "https://github.com/detlefla/django-restricted-fields/issues",
"Repository": "https://github.com/detlefla/django-restricted-fields"
},
"split_keywords": [
"web",
" django",
" forms"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "91ad8f413b2802cc96d33389269e186d313a0254e90900335e79bc13d8ad2ea3",
"md5": "5e9fc0179c225499589f4629cfd23b41",
"sha256": "523dbb4d82d12860074d569db2e1472d946de2cb889387037fa4f14fc477339e"
},
"downloads": -1,
"filename": "django_restricted_fields-0.3.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5e9fc0179c225499589f4629cfd23b41",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 5270,
"upload_time": "2024-05-05T12:06:16",
"upload_time_iso_8601": "2024-05-05T12:06:16.545459Z",
"url": "https://files.pythonhosted.org/packages/91/ad/8f413b2802cc96d33389269e186d313a0254e90900335e79bc13d8ad2ea3/django_restricted_fields-0.3.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b879b6cde0592c030981ed34c9e53842f677bcaeed7d9d4c19b5b451700959f2",
"md5": "9b205b22726f5d1e982bd1b2966d97e0",
"sha256": "590018d965cc82a81c26988d12102eaac0201180a2819a8c7149ce9de24873c6"
},
"downloads": -1,
"filename": "django_restricted_fields-0.3.2.tar.gz",
"has_sig": false,
"md5_digest": "9b205b22726f5d1e982bd1b2966d97e0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 6681,
"upload_time": "2024-05-05T12:06:17",
"upload_time_iso_8601": "2024-05-05T12:06:17.730954Z",
"url": "https://files.pythonhosted.org/packages/b8/79/b6cde0592c030981ed34c9e53842f677bcaeed7d9d4c19b5b451700959f2/django_restricted_fields-0.3.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-05 12:06:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "detlefla",
"github_project": "django-restricted-fields",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "django-restricted-fields"
}