{
"info": {
"author": "Devang Padhiyar",
"author_email": "devangpadhiyar700@gmail.com",
"bugtrack_url": null,
"classifiers": [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3"
],
"description": "# Django Duration Widget\n\n\n### When to use?\n\nYou can find duration field as below which is not far good for humans to use.\n\n\n\n\n\nDjango duration widget is used for simplfiend Django model's `Duration` field.\n\n\n### Quick start\n\n1. Install `django-durationwidget` using `pip`\n\n `pip install django-durationwidget`\n\n2. Add `durationwidget` to your `INSTALLED_APPS` setting like this::\n\n ```python\n INSTALLED_APPS = [\n ...\n 'durationwidget',\n ]\n ```\n3. Make sure to set `APP_DIRS` to `True` in settings.py\n\n ```python\n TEMPLATES = [\n {\n 'BACKEND': 'django.template.backends.django.DjangoTemplates',\n 'DIRS': [\n os.path.join(BASE_DIR, 'templates'),\n ...\n ],\n 'APP_DIRS': True, # Setup this to True\n 'OPTIONS': {\n ...\n },\n },\n ]\n ```\n\n4. Cheer up you are ready to use `TimeDurationWidget` as normal widget as below.\n\n ```python\n from django import forms\n from durationwidget.widgets import TimeDurationWidget\n\n from .models import YourModel\n\n\n class CustomForm(forms.ModelForm):\n ...\n duration = forms.DurationField(widget=TimeDurationWidget(), required=False)\n\n class Meta:\n model = YourModel\n ...\n\n ```\n\nIt will render Duration field as below\n\n\n\n\n## TimeDurationWidget\n\n```python\nduration = forms.DurationField(widget=TimeDurationWidget(\n show_days=True, show_hours=True, show_minutes=True, show_seconds=True\n), required=False)\n```\n\n Following keyword argument can be passed to show/ hide fields in duration widget.\n\n > By default all keyword arguments are set to `True`\n\n`show_days` : To display/ hide days field in widget
\n`show_hours` : To display/ hide hours field in widget
\n`show_minutes` : To display/ hide minutes field in widget
\n`show_seconds` : To display/ hide seconds field in widget
\n\n",
"description_content_type": "text/markdown",
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/devangpadhiyar/django-durationwidget",
"keywords": "",
"license": "",
"maintainer": "",
"maintainer_email": "",
"name": "django-durationwidget",
"package_url": "https://pypi.org/project/django-durationwidget/",
"platform": "",
"project_url": "https://pypi.org/project/django-durationwidget/",
"project_urls": {
"Homepage": "https://github.com/devangpadhiyar/django-durationwidget"
},
"release_url": "https://pypi.org/project/django-durationwidget/1.0.5/",
"requires_dist": [
"Django (>=1.11)"
],
"requires_python": "",
"summary": "Django Duration field widget to handle duration field in the form",
"version": "1.0.5"
},
"last_serial": 4928698,
"releases": {
"1.0.0": [
{
"comment_text": "",
"digests": {
"md5": "3b1e62a3a12003eb17ca8de34ee0190d",
"sha256": "7bea02fdf265565c254e5d968ff562cad0f6189409a3df41404f7d05907046e5"
},
"downloads": -1,
"filename": "django_durationwidget-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3b1e62a3a12003eb17ca8de34ee0190d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4453,
"upload_time": "2019-03-08T17:02:35",
"url": "https://files.pythonhosted.org/packages/96/9b/57895d2970103e0b27406db417dc31a73f485ab39e12af56d61165c40a55/django_durationwidget-1.0.0-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "ce228eeacd7b1d7681a196496e5c7eb3",
"sha256": "21d5420ebd2614c40fe7e1ab31316e874c4ed67e02b5ca09ec5fa8ee9c65107e"
},
"downloads": -1,
"filename": "django-durationwidget-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "ce228eeacd7b1d7681a196496e5c7eb3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2721,
"upload_time": "2019-03-08T17:02:38",
"url": "https://files.pythonhosted.org/packages/28/a4/709d2dc12149ecb112f93ee1dc53ab7b982618ceba1f8cc48bfbff93f4b0/django-durationwidget-1.0.0.tar.gz"
}
],
"1.0.1": [
{
"comment_text": "",
"digests": {
"md5": "514949d48ff1aaa00c29d225c9792f02",
"sha256": "002e188a7b97539d1fe3b96eca3402282796b7ebd0f2ea45de2260e8c5ed78a8"
},
"downloads": -1,
"filename": "django_durationwidget-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "514949d48ff1aaa00c29d225c9792f02",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4480,
"upload_time": "2019-03-08T17:17:43",
"url": "https://files.pythonhosted.org/packages/9b/e0/de84a591497a51dc6e37877632e3813838a3cfca55e45a3c3a932165dfda/django_durationwidget-1.0.1-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "f9d9c7f000a209ac0c0085b1975ee343",
"sha256": "06a0e0bfd4ce5f3e749a60967c24fbe2fd2fcdf920498fb5e513a50980d92b95"
},
"downloads": -1,
"filename": "django-durationwidget-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "f9d9c7f000a209ac0c0085b1975ee343",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2779,
"upload_time": "2019-03-08T17:17:45",
"url": "https://files.pythonhosted.org/packages/ab/d5/4b466b7864009101d181d381a650ab9006e395c129c76db20231d475e741/django-durationwidget-1.0.1.tar.gz"
}
],
"1.0.2": [
{
"comment_text": "",
"digests": {
"md5": "6c95569dc0c281a902a9bf5c1c63b4c0",
"sha256": "c99820fa69faafe46985b86defb99ba0b974ed9912309bc91bcbfa0edd9beaf4"
},
"downloads": -1,
"filename": "django_durationwidget-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6c95569dc0c281a902a9bf5c1c63b4c0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4481,
"upload_time": "2019-03-08T17:27:26",
"url": "https://files.pythonhosted.org/packages/36/b3/eca7266d0e0308df12e1f2da7e30f4e10699c3e830cf33094cfbcae2494b/django_durationwidget-1.0.2-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "95f13a0dcbe41a258e2d7f49273a3f87",
"sha256": "a50c9acb83efcc5c503912c16f8eba717e227a0bff173896013f186481b91dd5"
},
"downloads": -1,
"filename": "django-durationwidget-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "95f13a0dcbe41a258e2d7f49273a3f87",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2779,
"upload_time": "2019-03-08T17:27:27",
"url": "https://files.pythonhosted.org/packages/c4/d1/aaed8dfaa49ad09abac88fef257e891f9513aa4c89880e134f15dd11b1a9/django-durationwidget-1.0.2.tar.gz"
}
],
"1.0.3": [
{
"comment_text": "",
"digests": {
"md5": "80926d3aaab595638810793b04fc7350",
"sha256": "6eb4a6a79bd86b61650268ea2233ac46b43fde6984704f3ff9c4c21e92217faf"
},
"downloads": -1,
"filename": "django_durationwidget-1.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "80926d3aaab595638810793b04fc7350",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5286,
"upload_time": "2019-03-08T17:46:16",
"url": "https://files.pythonhosted.org/packages/ae/73/63f92e41ae51c27c72363d6a23d1b02b5b352660b5d70f68d21cdb57d83e/django_durationwidget-1.0.3-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "8bb7c49a673dd4bc4f5733ce40c02e00",
"sha256": "e6e174acce8d7e65326a1368e0984ece5890aef63f832b51972e59da8263815c"
},
"downloads": -1,
"filename": "django-durationwidget-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "8bb7c49a673dd4bc4f5733ce40c02e00",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3135,
"upload_time": "2019-03-08T17:46:17",
"url": "https://files.pythonhosted.org/packages/40/7a/d02d7004961c3e3e619bc1accfa4a0eb120e05d2c85a81cf64ec098c7a10/django-durationwidget-1.0.3.tar.gz"
}
],
"1.0.4": [
{
"comment_text": "",
"digests": {
"md5": "6e0478e398e0323e79979fea21171537",
"sha256": "cd2dfaf943b73d257740322db4e76f0f9caf0e42ebfbef79e790852af6d82efb"
},
"downloads": -1,
"filename": "django_durationwidget-1.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6e0478e398e0323e79979fea21171537",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5878,
"upload_time": "2019-03-12T04:58:11",
"url": "https://files.pythonhosted.org/packages/4c/3a/7d63c8fa4d6f000bbac905aa0b17fadb47d1494ce209cd5af4f055bf019a/django_durationwidget-1.0.4-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "ae6053952b65e5e2645420e1d3cc6056",
"sha256": "1e0c85e933ca8b39fc675a2830425a4f853731e6322014c9c22436bc3d068c5c"
},
"downloads": -1,
"filename": "django-durationwidget-1.0.4.tar.gz",
"has_sig": false,
"md5_digest": "ae6053952b65e5e2645420e1d3cc6056",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 71353,
"upload_time": "2019-03-12T04:58:13",
"url": "https://files.pythonhosted.org/packages/6e/04/9ceb28adb299b43e2510f80e4e8843c23b3c1a6624e29277242862c72f3f/django-durationwidget-1.0.4.tar.gz"
}
],
"1.0.5": [
{
"comment_text": "",
"digests": {
"md5": "e2597a005b59598cc83235c0ad70a61b",
"sha256": "7d14d5dfcf46c444fb203fe911cd058f78ba482c81ea2f0665db08369a1eff47"
},
"downloads": -1,
"filename": "django_durationwidget-1.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e2597a005b59598cc83235c0ad70a61b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5877,
"upload_time": "2019-03-12T06:38:04",
"url": "https://files.pythonhosted.org/packages/18/79/8e693a38b28adf374d90d4ecc6221f0a93d08442b57e699fde070c6b7780/django_durationwidget-1.0.5-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "37545edfc69df6d58c7116b7921468bf",
"sha256": "a77bba14c173cbfe50071ae08759ca37218acb8567639687b0119647cb78c53f"
},
"downloads": -1,
"filename": "django-durationwidget-1.0.5.tar.gz",
"has_sig": false,
"md5_digest": "37545edfc69df6d58c7116b7921468bf",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 71359,
"upload_time": "2019-03-12T06:38:06",
"url": "https://files.pythonhosted.org/packages/11/7a/12e987f4b7ea57fb3d66997984b6863af45fd5fb326bfea47904aa27a607/django-durationwidget-1.0.5.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "e2597a005b59598cc83235c0ad70a61b",
"sha256": "7d14d5dfcf46c444fb203fe911cd058f78ba482c81ea2f0665db08369a1eff47"
},
"downloads": -1,
"filename": "django_durationwidget-1.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e2597a005b59598cc83235c0ad70a61b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5877,
"upload_time": "2019-03-12T06:38:04",
"url": "https://files.pythonhosted.org/packages/18/79/8e693a38b28adf374d90d4ecc6221f0a93d08442b57e699fde070c6b7780/django_durationwidget-1.0.5-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "37545edfc69df6d58c7116b7921468bf",
"sha256": "a77bba14c173cbfe50071ae08759ca37218acb8567639687b0119647cb78c53f"
},
"downloads": -1,
"filename": "django-durationwidget-1.0.5.tar.gz",
"has_sig": false,
"md5_digest": "37545edfc69df6d58c7116b7921468bf",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 71359,
"upload_time": "2019-03-12T06:38:06",
"url": "https://files.pythonhosted.org/packages/11/7a/12e987f4b7ea57fb3d66997984b6863af45fd5fb326bfea47904aa27a607/django-durationwidget-1.0.5.tar.gz"
}
]
}