{ "info": { "author": "Andrew Foote", "author_email": "footeandrew1@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 2.1", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "# Short Text Field for Django\n\nA very simple Django app that adds a `ShortTextField` model field class, which\nis treated like a `TextField` in the database (i.e. the data is stored in the\ndatabase with the `text` rather than the `varchar` type, and the developer does\nnot need to specify a `max_length`), but uses the `TextInput` widget (a single-\nline ``) by default rather than `Textarea`. This is ideal for\nPostgreSQL, which recommends the 'text' type in a wider variety of\ncircumstances than other commonly-used database backends (see the\n[PostgreSQL docs](https://www.postgresql.org/docs/9.1/static/datatype-character.html)).\n\n## Installation\n\nThis package is available from\n[PyPI](https://pypi.org/project/django-short-text-field/), so you can install\nit using `pip` like this:\n\n pip install django-short-text-field\n\n## Usage\n\n1. Add `'short_text_field'` to your `INSTALLED_APPS` setting like this:\n\n INSTALLED_APPS = [\n ...\n 'short_text_field',\n ]\n\n2. Add a `ShortTextField` to a model like this:\n\n from short_text_field.models import ShortTextField\n\n ...\n\n class ExampleModel(models.Model):\n ...\n example_field = ShortTextField\n\n3. A model with a `ShortTextField` should be registered in the admin site using\n `short_text_field.admin.ModelAdmin`.\n\n admin.site.register(ExampleModel, short_text_field.admin.ModelAdmin)\n\n A subclass of this class will also work:\n\n class ExampleModelAdmin(short_text_field.admin.ModelAdmin):\n model = ExampleModel\n ...\n\n admin.site.register(ExampleModel, ExampleModelAdmin)\n\n If you have a hierarchy of `ModelAdmin` subclasses, you can still\n incorporate `short_text_field.admin.ModelAdmin` easily as a mixin:\n\n class ExampleModelAdmin2(short_text_field.admin.ModelAdmin, ExampleModelAdmin1):\n model = ExampleModel\n ...\n\n admin.site.register(ExampleModel, ExampleModelAdmin)\n\n You can also use a subclass of `short_text_field.admin.AdminSite` for the\n site, which will make `short_text_field.admin.ModelAdmin` the default\n `ModelAdmin` subclass to use for registering. In the simplest case, you can\n just set the `default_site` attribute of the `AdminConfig` class and then\n register all of your models in the normal way:\n\n from django.contrib.admin import apps\n import short_text_field.admin.AdminSite\n\n ...\n\n class ExampleAdminConfig(apps.AdminConfig):\n ...\n default_site = short_text_field.admin.AdminSite\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://www.example.com/", "keywords": "", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "django-short-text-field", "package_url": "https://pypi.org/project/django-short-text-field/", "platform": "", "project_url": "https://pypi.org/project/django-short-text-field/", "project_urls": { "Homepage": "https://www.example.com/" }, "release_url": "https://pypi.org/project/django-short-text-field/0.3.2/", "requires_dist": null, "requires_python": "", "summary": "A Django app which adds a ShortTextField model field, whichis like a TextField in the database but uses the TextInputrather than the Textarea widget in forms.", "version": "0.3.2" }, "last_serial": 4395952, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "19653773dfc52793b7f5bbddea12f8cf", "sha256": "bcea883731c02805435912f3dc243a9fb9d6e33fcc83cbd10aeeb6c45756bd98" }, "downloads": -1, "filename": "django_short_text_field-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "19653773dfc52793b7f5bbddea12f8cf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7194, "upload_time": "2018-10-14T23:44:31", "url": "https://files.pythonhosted.org/packages/cc/0c/556e315428683c23d240665aed2cf76cf296bc68b3d98594e7ab5bd714db/django_short_text_field-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2ca7721e91254e6a378872f283a17a9c", "sha256": "f7d104ba79784202e025afc5c7ccdfc3388fa87de9aa7f5334f9cdf2e2016b2b" }, "downloads": -1, "filename": "django-short-text-field-0.1.tar.gz", "has_sig": false, "md5_digest": "2ca7721e91254e6a378872f283a17a9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3661, "upload_time": "2018-10-14T23:44:38", "url": "https://files.pythonhosted.org/packages/ba/5f/0494c3b7e1413658225a398fce3d106816870f8eddd374614c097d87414a/django-short-text-field-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "2254ee5f2935dd50c81f4e7ba38d2faf", "sha256": "1e7505c34d4a1403f99f8a4cb71cab307f58779bab13461c5e893a8422bb7126" }, "downloads": -1, "filename": "django_short_text_field-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "2254ee5f2935dd50c81f4e7ba38d2faf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7197, "upload_time": "2018-10-14T23:44:32", "url": "https://files.pythonhosted.org/packages/c9/50/96544dbeb13b8269b07f6a01ee563b5229402ca3f0e97920c708bb9d751d/django_short_text_field-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "def86e8309506e15cde38f3c70fd9c6a", "sha256": "199e8a23ed50497a90c6f8a7a8e9c905009f7b68792196547272c9583172ef82" }, "downloads": -1, "filename": "django-short-text-field-0.2.tar.gz", "has_sig": false, "md5_digest": "def86e8309506e15cde38f3c70fd9c6a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3660, "upload_time": "2018-10-14T23:44:40", "url": "https://files.pythonhosted.org/packages/5a/cc/aac31875a2e4cf0385cb6bd152eb6e539b04750f9223052a1b7835974b38/django-short-text-field-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "2ddd933c5194cb8e1236cc0f0e29e2db", "sha256": "15d03cd14a9a376f21e3dca31711b81420ef0aff2fed62495094232f22ab90f6" }, "downloads": -1, "filename": "django_short_text_field-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "2ddd933c5194cb8e1236cc0f0e29e2db", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7246, "upload_time": "2018-10-14T23:44:34", "url": "https://files.pythonhosted.org/packages/dc/7b/75ef368b3325b26f99b23be362f60ecbe0dabcea6c45613f5f00878c4e91/django_short_text_field-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "72adf12e5b2ce25ce3990a707b353ac3", "sha256": "454caabb9e75a35bbe79c3ad2d55ab7ba4cdf71ca8400973f5497b5b652f66d3" }, "downloads": -1, "filename": "django-short-text-field-0.3.tar.gz", "has_sig": false, "md5_digest": "72adf12e5b2ce25ce3990a707b353ac3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3706, "upload_time": "2018-10-14T23:44:42", "url": "https://files.pythonhosted.org/packages/8b/7b/ef90c7f1fc2b752365eb87968e75c898cd252d3cf1844786993cddc74a0f/django-short-text-field-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "651b060467afd3af66f6dbca7bb5aaab", "sha256": "86a470cf717ac187a6aee0bb7ee39812d1234984f5683f3675fb1912ffaaf830" }, "downloads": -1, "filename": "django_short_text_field-0.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "651b060467afd3af66f6dbca7bb5aaab", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7300, "upload_time": "2018-10-14T23:44:35", "url": "https://files.pythonhosted.org/packages/f8/9e/38ecb6417d806966e622b3dd948bff7f6905442cdab759895f5b3b1ee4a3/django_short_text_field-0.3.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f5c3778df05b3fa74ec097d4434749c9", "sha256": "0c7c7c5b83d2ff263f9a0553ce37cddbe20ba46e330133e2ad46dae9a3efd18b" }, "downloads": -1, "filename": "django-short-text-field-0.3.1.tar.gz", "has_sig": false, "md5_digest": "f5c3778df05b3fa74ec097d4434749c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3705, "upload_time": "2018-10-14T23:44:41", "url": "https://files.pythonhosted.org/packages/ab/8b/6699445c3993be5a12ae7e2d689c26c71d431dbfa0982f3c4d8dc8670015/django-short-text-field-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "1c3fe8835d0d301ba67cf8088261a074", "sha256": "984a86ada1a60df43534cb915d732df09f97bdacd6a981bab87a50fa25172edb" }, "downloads": -1, "filename": "django_short_text_field-0.3.2-py3-none-any.whl", "has_sig": false, "md5_digest": "1c3fe8835d0d301ba67cf8088261a074", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7323, "upload_time": "2018-10-19T22:20:28", "url": "https://files.pythonhosted.org/packages/79/87/da75d7dffc37baf347e55f19151fa7f35bb4e46b6bedb415ab55a5c9ea31/django_short_text_field-0.3.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "85c14f22ac7e077eef22038d3011d1ea", "sha256": "b49c5d0d12a205ceaf51485806ed47af94ee724f217a87f4645e1a4f8d38859f" }, "downloads": -1, "filename": "django-short-text-field-0.3.2.tar.gz", "has_sig": false, "md5_digest": "85c14f22ac7e077eef22038d3011d1ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3784, "upload_time": "2018-10-19T22:20:33", "url": "https://files.pythonhosted.org/packages/52/ec/dcf82e80ec1d3430afc2a24125573fc3190e9b785b7d6bde606beab80f2e/django-short-text-field-0.3.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1c3fe8835d0d301ba67cf8088261a074", "sha256": "984a86ada1a60df43534cb915d732df09f97bdacd6a981bab87a50fa25172edb" }, "downloads": -1, "filename": "django_short_text_field-0.3.2-py3-none-any.whl", "has_sig": false, "md5_digest": "1c3fe8835d0d301ba67cf8088261a074", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7323, "upload_time": "2018-10-19T22:20:28", "url": "https://files.pythonhosted.org/packages/79/87/da75d7dffc37baf347e55f19151fa7f35bb4e46b6bedb415ab55a5c9ea31/django_short_text_field-0.3.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "85c14f22ac7e077eef22038d3011d1ea", "sha256": "b49c5d0d12a205ceaf51485806ed47af94ee724f217a87f4645e1a4f8d38859f" }, "downloads": -1, "filename": "django-short-text-field-0.3.2.tar.gz", "has_sig": false, "md5_digest": "85c14f22ac7e077eef22038d3011d1ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3784, "upload_time": "2018-10-19T22:20:33", "url": "https://files.pythonhosted.org/packages/52/ec/dcf82e80ec1d3430afc2a24125573fc3190e9b785b7d6bde606beab80f2e/django-short-text-field-0.3.2.tar.gz" } ] }