{ "info": { "author": "", "author_email": "misiurev@ncbi.nlm.nih.gov", "bugtrack_url": null, "classifiers": [], "description": "# Wrapper for [jsonfield](https://github.com/bradjasper/django-jsonfield) with predefined structurethat uses set of corresponding widgets for edit\n\nRequires Django 1.8+\n\n## Installation\n\n```\npip install django-dictionaryfield\n```\n\n## Usage\nAdd \"dictionaryfield\" to installed apps in django settings file:\n\n```python\nINSTALLED_APPS = (\n ...\n 'dictionaryfield',\n ...\n)\n```\n\n### Use as model field\n\n```python\n from collections import OrderedDict\n from django.db import models\n\n from dictionaryfield import DictionaryField\n\n\n class MyModel(models.Model):\n english_data = DictionaryField(\n \"What is the first volume and issue in which the journal published full-text English?\",\n fields=OrderedDict([\n ('volume', fields.CharField(label='Volume', required=False)),\n ('issue', fields.CharField(label='Issue', required=False))\n ])\n )\n```\n\n### Use as form field\n\n```python\n from collections import OrderedDict\n from django.db import models\n\n from dictionaryfield import DictionaryFormField\n\n\n class MyForm(models.Model):\n sample_field = DictionaryFormField(\n \"Sample field label\",\n fields=OrderedDict([\n ('volume', fields.CharField(label='Volume', required=False)),\n ('issue', fields.CharField(label='Issue', required=False))\n ])\n )\n```\n\n### Use with bootstrap3 template tags\nDictionary field works with django-bootstrap3. In a template your should access child fields like this:\n\n```html\n {% load bootstra3 %}\n\n {% bootstrap_field form.sample_field.volume %}\n {% bootstrap_field form.sample_field.issue %}\n```", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.ncbi.nlm.nih.gov/projects/PMC/repos/django-dictionaryfield/browse", "keywords": "", "license": "Public Domain", "maintainer": "", "maintainer_email": "", "name": "django-dictionaryfield", "package_url": "https://pypi.org/project/django-dictionaryfield/", "platform": "", "project_url": "https://pypi.org/project/django-dictionaryfield/", "project_urls": { "Homepage": "https://bitbucket.ncbi.nlm.nih.gov/projects/PMC/repos/django-dictionaryfield/browse" }, "release_url": "https://pypi.org/project/django-dictionaryfield/1.0/", "requires_dist": null, "requires_python": "", "summary": "Dynamic list of inputs", "version": "1.0" }, "last_serial": 4662028, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "79a603c57a6d87d8dc945e8320ef54c9", "sha256": "36be45eb69da0cf5ab5135b135c27877434ce1ef25bc065bf0190a3716eacb96" }, "downloads": -1, "filename": "django-dictionaryfield-1.0.tar.gz", "has_sig": false, "md5_digest": "79a603c57a6d87d8dc945e8320ef54c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6233, "upload_time": "2019-01-04T22:54:41", "url": "https://files.pythonhosted.org/packages/b1/d4/1341a163a664beaf147f3fd7a54dec5493f437adeada3fa1633a1f59a1c1/django-dictionaryfield-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "79a603c57a6d87d8dc945e8320ef54c9", "sha256": "36be45eb69da0cf5ab5135b135c27877434ce1ef25bc065bf0190a3716eacb96" }, "downloads": -1, "filename": "django-dictionaryfield-1.0.tar.gz", "has_sig": false, "md5_digest": "79a603c57a6d87d8dc945e8320ef54c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6233, "upload_time": "2019-01-04T22:54:41", "url": "https://files.pythonhosted.org/packages/b1/d4/1341a163a664beaf147f3fd7a54dec5493f437adeada3fa1633a1f59a1c1/django-dictionaryfield-1.0.tar.gz" } ] }