{ "info": { "author": "byteweaver", "author_email": "contact@byteweaver.net", "bugtrack_url": null, "classifiers": [], "description": "#django-singleactiveobject\n\nModel mixin that ensures there is only one active model instance in your database. \n\n## What is this app good for?\nThis might come in handy if you store some sort of configuration in your database\nbut want to be sure there is only one active entry at a time.\n\n## How it works\n\nUpon save() this will check if the current object is active=True and will set\nany other active object to active=False ensuring there is only one active.\n\n## Download/Install\n\n### using pip\n\n\tpip install django-singleactiveobject\n\t\n### github\n\n\tgit clone https://github.com/byteweaver/django-singleactiveobject\n \n## Usage\n\n```python\nfrom singleactiveobject.models import SingleActiveObjectMixin\n\nclass YourModel(SingleActiveObjectMixin):\n ...your stuff\n```\n\n## Testing\n\nJust run the makefile to set up a virtual environment for testing\n\n\tmake\n\nStart the test runner\n\n\tmake test", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/byteweaver/django-singleactiveobject", "keywords": null, "license": "Copyright (c) 2012, byteweaver\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice,\n this list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n * Neither the name of django-eca-catalogue nor the names of its contributors may\n be used to endorse or promote products derived from this software without\n specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", "maintainer": null, "maintainer_email": null, "name": "django-singleactiveobject", "package_url": "https://pypi.org/project/django-singleactiveobject/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-singleactiveobject/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/byteweaver/django-singleactiveobject" }, "release_url": "https://pypi.org/project/django-singleactiveobject/0.9.1/", "requires_dist": null, "requires_python": null, "summary": "Model mixin that ensures there is only one active model instance in your database.", "version": "0.9.1" }, "last_serial": 790648, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "8f805170d75ce89f7327bb1b3f6c5fc5", "sha256": "34a6c01a9ca7a17aa1c557ad58dade401c7d8a78e63fca870d72b932bee83792" }, "downloads": -1, "filename": "django-singleactiveobject-0.9.0.tar.gz", "has_sig": false, "md5_digest": "8f805170d75ce89f7327bb1b3f6c5fc5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3621, "upload_time": "2012-12-17T11:27:36", "url": "https://files.pythonhosted.org/packages/ef/9e/d35b5f9204b9d3df2d83ffbc22644142fdc66e86569c34ad358439c9d447/django-singleactiveobject-0.9.0.tar.gz" } ], "0.9.1": [ { "comment_text": "", "digests": { "md5": "01db39fecd9e4f333a9c9639c4b7fd8c", "sha256": "037236b59a4e2e9b39807da539e90229e294b6ca72671b8581af334d82ec83cd" }, "downloads": -1, "filename": "django-singleactiveobject-0.9.1.tar.gz", "has_sig": false, "md5_digest": "01db39fecd9e4f333a9c9639c4b7fd8c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3833, "upload_time": "2012-12-19T18:55:22", "url": "https://files.pythonhosted.org/packages/f1/68/9232c448374d04fb67a4afe39d5feb7d32c463149b4ead7b64da1c8a5f6b/django-singleactiveobject-0.9.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "01db39fecd9e4f333a9c9639c4b7fd8c", "sha256": "037236b59a4e2e9b39807da539e90229e294b6ca72671b8581af334d82ec83cd" }, "downloads": -1, "filename": "django-singleactiveobject-0.9.1.tar.gz", "has_sig": false, "md5_digest": "01db39fecd9e4f333a9c9639c4b7fd8c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3833, "upload_time": "2012-12-19T18:55:22", "url": "https://files.pythonhosted.org/packages/f1/68/9232c448374d04fb67a4afe39d5feb7d32c463149b4ead7b64da1c8a5f6b/django-singleactiveobject-0.9.1.tar.gz" } ] }