{ "info": { "author": "Joerg Breitbart", "author_email": "j.breitbart@netzkolchose.de", "bugtrack_url": null, "classifiers": [], "description": "django-hidefield\n~~~~~~~~~~~~~~~~\n\nProvides a field base class to hide fields in django admin. The class\nturns a field label in an admin edit form into a show/hide toggle link.\n\nTested with Django 1.11.\n\nInstallation\n^^^^^^^^^^^^\n\n- ``pip install django-hidefield``\n- place ``'hidefield'`` in ``INSTALLED_APPS``\n\nUsage\n^^^^^\n\nBuild a custom field class for any model field type you want to hide.\nThe field has an additional argument ``hide`` with the following\nmeaning:\n\n- ``'closed'`` : default, the field is hidden at start\n- ``'data'`` : the field is hidden at start, if the field contains data\n- ``'no-data'`` : the field is hidden at start, if the field contains\n no data\n- ``'opened'`` : (or any other value) the field is shown at start\n\nExample\n^^^^^^^\n\n.. code:: python\n\n from django.db import models\n from hidefield.fields import HideField\n\n\n class HideCharField(HideField, models.CharField):\n pass\n\n\n class MyModel(models.Model):\n name = HideCharField(max_length=32, hide='data')\n\nSee ``exampleapp`` for more examples.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/jerch/django-hidefield/archive/0.1.2.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jerch/django-hidefield", "keywords": "django,widget,admin,field,hide", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-hidefield", "package_url": "https://pypi.org/project/django-hidefield/", "platform": "", "project_url": "https://pypi.org/project/django-hidefield/", "project_urls": { "Download": "https://github.com/jerch/django-hidefield/archive/0.1.2.tar.gz", "Homepage": "https://github.com/jerch/django-hidefield" }, "release_url": "https://pypi.org/project/django-hidefield/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "hide fields in django admin", "version": "0.1.2" }, "last_serial": 3596575, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "864e279bfe3661fa2bfe042a41f17605", "sha256": "7ed7e67e0d023b765fefcc1c7b88007d67b18ccc3142837a5f701563cb62c3e7" }, "downloads": -1, "filename": "django-hidefield-0.1.2.tar.gz", "has_sig": false, "md5_digest": "864e279bfe3661fa2bfe042a41f17605", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2977, "upload_time": "2018-02-19T17:25:04", "url": "https://files.pythonhosted.org/packages/af/13/bd81d6fe001f324f522dff0880f4efcd669159726e7430e79cc9143654a1/django-hidefield-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "864e279bfe3661fa2bfe042a41f17605", "sha256": "7ed7e67e0d023b765fefcc1c7b88007d67b18ccc3142837a5f701563cb62c3e7" }, "downloads": -1, "filename": "django-hidefield-0.1.2.tar.gz", "has_sig": false, "md5_digest": "864e279bfe3661fa2bfe042a41f17605", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2977, "upload_time": "2018-02-19T17:25:04", "url": "https://files.pythonhosted.org/packages/af/13/bd81d6fe001f324f522dff0880f4efcd669159726e7430e79cc9143654a1/django-hidefield-0.1.2.tar.gz" } ] }