django-restricted-fields


Namedjango-restricted-fields JSON
Version 0.3.1 PyPI version JSON
download
home_pageNone
SummaryProvides date and date/time fields with restrictions for Django forms.
upload_time2024-04-16 22:24:18
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
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.10",
    "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/33/6e/17726ccc50ae855685d1fe3221f0dc0b2b93d463d19a0c3417e14604cd2e/django_restricted_fields-0.3.1.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.1",
    "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": "6b32c126760d4ed08948fae2aec7ac53e5e353ad32cf594c86994c9b51df4838",
                "md5": "ab696da93f53b1e9485a0d893f2efdb3",
                "sha256": "dd40366b99e50f47b8d62aafa1053626136f8c365c0d4dff9095853409d4fd28"
            },
            "downloads": -1,
            "filename": "django_restricted_fields-0.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ab696da93f53b1e9485a0d893f2efdb3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 5268,
            "upload_time": "2024-04-16T22:24:16",
            "upload_time_iso_8601": "2024-04-16T22:24:16.187911Z",
            "url": "https://files.pythonhosted.org/packages/6b/32/c126760d4ed08948fae2aec7ac53e5e353ad32cf594c86994c9b51df4838/django_restricted_fields-0.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "336e17726ccc50ae855685d1fe3221f0dc0b2b93d463d19a0c3417e14604cd2e",
                "md5": "09688cdfe2a962c8cec3601a420a8a09",
                "sha256": "64b5f29f878a85ed8c28dd32a2b7630c41d216df87b4036d01c5821cb74bb136"
            },
            "downloads": -1,
            "filename": "django_restricted_fields-0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "09688cdfe2a962c8cec3601a420a8a09",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 6689,
            "upload_time": "2024-04-16T22:24:18",
            "upload_time_iso_8601": "2024-04-16T22:24:18.242077Z",
            "url": "https://files.pythonhosted.org/packages/33/6e/17726ccc50ae855685d1fe3221f0dc0b2b93d463d19a0c3417e14604cd2e/django_restricted_fields-0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-16 22:24:18",
    "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"
}
        
Elapsed time: 0.22922s