{ "info": { "author": "Thom Linton", "author_email": "thom.linton@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "================\ndjango-enummodel\n================\n\n``django-enummodel`` is a small utility application designed to help bridge the niche use \ncase(s?) between defining enumerations for a given field (mutually exclusive options) and \nfully specifying non-exclusive options as instances of a fully specified model type.\n\nIn the common case, non-mututally exclusive options configured as a fully specified model\n(along with a fixture to store those options) can, in the best case, 'just work'; in the \nworst case, it can provide mild headaches, notably when lazy translations are involved.\n\nIn the particular case of the author, the challenge was to avoid having to cope with a \nO(n) growth rate of fixtures to manage, coupled with the desire to avoid encountering \nissues of internationalization and being forced to choose a particular character set \nin which to store these values.\n\n``django-enummodel`` provides a `Django`_ Model object with which the developer may extend \nto provide the functionality sketched above::\n\n LANGUAGE_CHOICES = (\n (1,_(u'English')),\n (2,_(u'Spanish')),\n (3,_(u'French')),\n\n (255,_(u'other')),\n )\n\n class Language(EnumModel):\n class EnumMeta:\n choices = LANGUAGE_CHOICES\n\nPlease note that that population of any model derived from ``EnumModel`` takes place after\nschema migration; therefore, changes to the choices basis will need to be rectified by running::\n\n django-admin.py migrate\n\nor::\n\n django-admin.py migrate app_name\n\n.. _Django: http://djangoproject.org\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/yorkedork/django-enummodel/tree/master", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-enummodel", "package_url": "https://pypi.org/project/django-enummodel/", "platform": "", "project_url": "https://pypi.org/project/django-enummodel/", "project_urls": { "Homepage": "http://github.com/yorkedork/django-enummodel/tree/master" }, "release_url": "https://pypi.org/project/django-enummodel/0.2.1/", "requires_dist": [ "Django (>=1.8)", "six (>=1.10.0)" ], "requires_python": "", "summary": "A Django application to bridge the gap between using enumerations and having fully-specified, normalized data models.", "version": "0.2.1" }, "last_serial": 2217528, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "ed13c4528fdbf3000f741ff2543bc2a2", "sha256": "5235312c1b345664cc48c1962e13cfd01f42a7b57a39c943dd95ee2490fde949" }, "downloads": -1, "filename": "django-enummodel-0.1.0.tar.gz", "has_sig": false, "md5_digest": "ed13c4528fdbf3000f741ff2543bc2a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5690, "upload_time": "2010-11-05T00:50:05", "url": "https://files.pythonhosted.org/packages/19/8d/3c77e56795d1c894623928b335b21596952137f7ada210b1e8f712cbdec9/django-enummodel-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "bb112093b6f0e56eecd91d212992bdde", "sha256": "c937cd3684986d2d81e9e4a52eef63523dfd41889fb42101bf44b21370409868" }, "downloads": -1, "filename": "django-enummodel-0.1.1.tar.gz", "has_sig": false, "md5_digest": "bb112093b6f0e56eecd91d212992bdde", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5777, "upload_time": "2010-11-05T23:16:54", "url": "https://files.pythonhosted.org/packages/6a/29/f6c205d6d275f6e25b4304a774906b8ca0d1dde720fec44e1e738b6e66ff/django-enummodel-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "91779a81dda236856b9f4899e77f5060", "sha256": "0002db7fd2ea7d49e88f64381268d0912de579d4de3f770e39a868eecb94aff5" }, "downloads": -1, "filename": "django-enummodel-0.1.2.tar.gz", "has_sig": false, "md5_digest": "91779a81dda236856b9f4899e77f5060", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5818, "upload_time": "2010-12-28T20:23:27", "url": "https://files.pythonhosted.org/packages/92/04/dcd16a4d1e07e4194a77e262472d06c469046574d3552e91dfc9c5527527/django-enummodel-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c3aff90143dc2f00d4a9ad10c57826c8", "sha256": "a0d03053ceda751017bc812eb8bc8231608df27278f1290a5ed9184767749243" }, "downloads": -1, "filename": "django-enummodel-0.1.3.tar.gz", "has_sig": false, "md5_digest": "c3aff90143dc2f00d4a9ad10c57826c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5767, "upload_time": "2011-03-09T01:01:19", "url": "https://files.pythonhosted.org/packages/96/98/9ba45e42f33214f2143d74f1544f618fa096e9999f02827ff93f70989790/django-enummodel-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "ab0b488eaa736e000aee21c5ff5b19a0", "sha256": "345dbb88b6c8ab94c57b2cafd34751a42e59707db765f44764d49bf1affebd58" }, "downloads": -1, "filename": "django-enummodel-0.1.4.tar.gz", "has_sig": false, "md5_digest": "ab0b488eaa736e000aee21c5ff5b19a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5771, "upload_time": "2011-07-22T02:13:43", "url": "https://files.pythonhosted.org/packages/b5/a3/af1e7df8ddbd867bc307a0059ff5de80a3bab3e1f3a1c28582db21a2b3fa/django-enummodel-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "4296e4a165bd61767482b73dc4b5e241", "sha256": "a01006a6d17901a1d7ca86a416640d5c0cec31be19a26be4b07e23f289fc68a9" }, "downloads": -1, "filename": "django-enummodel-0.1.5.tar.gz", "has_sig": false, "md5_digest": "4296e4a165bd61767482b73dc4b5e241", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6174, "upload_time": "2011-11-15T02:24:45", "url": "https://files.pythonhosted.org/packages/7e/93/5a9882ca32b346427c8b6cd93a321fde618d0b1c76b8220b42e78f1e0933/django-enummodel-0.1.5.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "6e8685c9c24a3c4b988b0692d5d5c292", "sha256": "0286f1dc509d5aa05f5f6caf1fa98a18f8efa8094122b63c9256f9365ddf88f8" }, "downloads": -1, "filename": "django_enummodel-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6e8685c9c24a3c4b988b0692d5d5c292", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9963, "upload_time": "2016-07-12T20:50:28", "url": "https://files.pythonhosted.org/packages/f2/42/dd46c4451c8a49d4d7b6047b38af41f8e4b9006d3fe624f5801079566662/django_enummodel-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "47cf236ec366a1a68fad907a918ebf80", "sha256": "4ad287502bba15612bb91195b770d858cac3f8ea42ec40543737145a1032e53a" }, "downloads": -1, "filename": "django-enummodel-0.2.1.tar.gz", "has_sig": false, "md5_digest": "47cf236ec366a1a68fad907a918ebf80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6238, "upload_time": "2016-07-12T20:50:31", "url": "https://files.pythonhosted.org/packages/9f/5d/72a4b125da59c81eca0c9b0ffa270a48cbc8324cd7adb7fc74b529219c75/django-enummodel-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6e8685c9c24a3c4b988b0692d5d5c292", "sha256": "0286f1dc509d5aa05f5f6caf1fa98a18f8efa8094122b63c9256f9365ddf88f8" }, "downloads": -1, "filename": "django_enummodel-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6e8685c9c24a3c4b988b0692d5d5c292", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9963, "upload_time": "2016-07-12T20:50:28", "url": "https://files.pythonhosted.org/packages/f2/42/dd46c4451c8a49d4d7b6047b38af41f8e4b9006d3fe624f5801079566662/django_enummodel-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "47cf236ec366a1a68fad907a918ebf80", "sha256": "4ad287502bba15612bb91195b770d858cac3f8ea42ec40543737145a1032e53a" }, "downloads": -1, "filename": "django-enummodel-0.2.1.tar.gz", "has_sig": false, "md5_digest": "47cf236ec366a1a68fad907a918ebf80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6238, "upload_time": "2016-07-12T20:50:31", "url": "https://files.pythonhosted.org/packages/9f/5d/72a4b125da59c81eca0c9b0ffa270a48cbc8324cd7adb7fc74b529219c75/django-enummodel-0.2.1.tar.gz" } ] }