{ "info": { "author": "Paul Dyson", "author_email": "pwdyson@yahoo.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Affero General Public License v3", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Linguistic" ], "description": "=============\ninflect_dj.py\n=============\n\n\nNAME\n====\ninflect_dj.py - Generate plurals for use with Django.\n\nVERSION\n=======\n\nThis document describes version 0.2.0 of inflect_dj.py\n\nINSTALLATION\n============\n\n``pip install inflect_dj``\n\nor\n\n``easy_install inflect_dj``\n\n\nDESCRIPTION\n===========\n\n@verbose_name_plural\n---\n\nDecorator for the Django ``models.Model`` classes.\n\n\nDecorating a child class of ``model.Model`` with ``@verbose_name_plural`` will ensure that\nthe plural form of the model name will be rendered correctly.\n\nIt uses the module ``inflect.py`` to determine the correct pluralisation.\n\nUSAGE\n-----\n\n 1. Using ``@verbose_name_plural`` when specifying a ``verbose_name`` for the model::\n\n from django.db import models\n from inflect_dj import verbose_name_plural\n\n @verbose_name_plural\n class mycategory(models.Model):\n [definition of the model]\n class Meta:\n verbose_name = 'category'\n [rest of the Meta class definition]\n\n The plural will be displayed correctly as ``categories``.\n\n 2. Using ``@verbose_name_plural`` without specifying ``verbose_name``::\n\n from django.db import models\n from inflect_dj import verbose_name_plural\n\n @verbose_name_plural\n class category(models.Model):\n [definition of the model]\n class Meta:\n [class Meta definition]\n\n\n The plural will be displayed correctly as ``categories``, as this\n is the plural of the class name.\n\nEarlier versions of Python\n--------------------------\n\nIf you are using a Python version earlier than 2.6 you cannot use\nclass decorators and must explicitly redefine the class with a call to\n``verbose_name_plural()``::\n\n from django.db import models\n from inflect_dj import verbose_name_plural\n\n class mycategory(models.Model):\n [definition of the model]\n class Meta:\n verbose_name = 'category'\n [rest of the Meta class definition]\n mycategory = verbose_name_plural(mycategory)\n\n\n\nAUTHOR\n======\n\nPaul Dyson (pwdyson@yahoo.com)\n\n\nCOPYRIGHT\n=========\n\n Copyright (C) 2010 Paul Dyson\n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU Affero General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU Affero General Public License\n along with this program. If not, see .\n\n This module can be downloaded at http://pypi.python.org/pypi/inflect_dj\n\n This module can be installed via ``easy_install inflect_dj``\n\n Repository available at http://github.com/pwdyson/inflect_dj.py", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/inflect_dj", "keywords": "plural,django", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "inflect_dj", "package_url": "https://pypi.org/project/inflect_dj/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/inflect_dj/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/inflect_dj" }, "release_url": "https://pypi.org/project/inflect_dj/v0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Correctly generate plurals when using Django", "version": "v0.2.0" }, "last_serial": 763519, "releases": { "v0.1.0a": [ { "comment_text": "", "digests": { "md5": "c7b061f76adff4e6c08c7dc0153d58eb", "sha256": "cd08e7b2131c3a5a9a512e2460c0cf5d15cac05500fd6df50cc2a9698a27f5e5" }, "downloads": -1, "filename": "inflect_dj-v0.1.0a.tar.gz", "has_sig": false, "md5_digest": "c7b061f76adff4e6c08c7dc0153d58eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14424, "upload_time": "2010-07-10T14:55:01", "url": "https://files.pythonhosted.org/packages/c1/67/a3d87681572349078ade0fba16a2a5f05120d6e456637830425d032869d6/inflect_dj-v0.1.0a.tar.gz" } ], "v0.1.1": [ { "comment_text": "", "digests": { "md5": "07291ae8bec294eddda8727790fb9264", "sha256": "e7815d1b2a1616ea43d5dddf451ead4cd64ad52a13dd50a8b8a7548a1574857f" }, "downloads": -1, "filename": "inflect_dj-v0.1.1.tar.gz", "has_sig": false, "md5_digest": "07291ae8bec294eddda8727790fb9264", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14706, "upload_time": "2010-07-10T16:29:48", "url": "https://files.pythonhosted.org/packages/4b/64/c7be4864165ea85144fdc5231c1cc646177276cc2a2d7cc8a1a38c7b619d/inflect_dj-v0.1.1.tar.gz" } ], "v0.1.2": [ { "comment_text": "", "digests": { "md5": "13dbe81dcbefdf61dccbc24cfee55223", "sha256": "bf45f9551ed5b59a1b5cb0c998b9213698753392aa6141960e08708c7b524634" }, "downloads": -1, "filename": "inflect_dj-v0.1.2.tar.gz", "has_sig": false, "md5_digest": "13dbe81dcbefdf61dccbc24cfee55223", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14461, "upload_time": "2010-07-11T07:33:56", "url": "https://files.pythonhosted.org/packages/aa/5a/3c39cc2c7f5827c00bcec5b2f2302785b6fd25041ad2822d798e8c057c08/inflect_dj-v0.1.2.tar.gz" } ], "v0.2.0": [ { "comment_text": "", "digests": { "md5": "a14cc1e0255eec47a5601e2c8eeddf24", "sha256": "96d71aadbfd934657cc54f23baa22d24e49c8ff74eb077f089fc6bb372c55cf7" }, "downloads": -1, "filename": "inflect_dj-v0.2.0.tar.gz", "has_sig": false, "md5_digest": "a14cc1e0255eec47a5601e2c8eeddf24", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14744, "upload_time": "2010-08-07T01:29:53", "url": "https://files.pythonhosted.org/packages/b5/ea/9d360cb1faf566fa0c59094958a02d4b423cf9f2e2471e206457afdac49c/inflect_dj-v0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a14cc1e0255eec47a5601e2c8eeddf24", "sha256": "96d71aadbfd934657cc54f23baa22d24e49c8ff74eb077f089fc6bb372c55cf7" }, "downloads": -1, "filename": "inflect_dj-v0.2.0.tar.gz", "has_sig": false, "md5_digest": "a14cc1e0255eec47a5601e2c8eeddf24", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14744, "upload_time": "2010-08-07T01:29:53", "url": "https://files.pythonhosted.org/packages/b5/ea/9d360cb1faf566fa0c59094958a02d4b423cf9f2e2471e206457afdac49c/inflect_dj-v0.2.0.tar.gz" } ] }