{ "info": { "author": "Incuna Ltd.", "author_email": "admin@incuna.com", "bugtrack_url": null, "classifiers": [], "description": "Django Boolean Sum\n==================\n\nThis is a small Django utility module to allow you to correctly annotate or\naggregate based on the sum of a Boolean field. This answers the question \"how\nmany objects do I have related to this object *where foo is True*.\n\nUsage\n-----\n\nUsage is pretty simple::\n\n from django_boolean_sum import BooleanSum\n\n MyModel.objects.annotate(priority_related_count=BooleanSum('related__priority'))\n\nThis will return instances of ``MyModel`` with a ``related_count`` attribute, which\nis the number of related instances which have ``priority=True``.\n\nInstallation\n------------\n\nFrom PyPI::\n\n $ pip install django-boolean-sum\n\nCaveats\n-------\n\nThis has been tested solely on PostgreSQL and Sqlite, using Django 1.4. It also\ndepends on internal Django components which are not documented, and therefore\nare subject to possible breaking changes in future versions.\n\nIt is very naive about multi-databases, assuming that the query is being made\nfor the backend of the ``default`` database.\n\nContributing\n------------\n\nPull Request it.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://incuna.com/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-boolean-sum", "package_url": "https://pypi.org/project/django-boolean-sum/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-boolean-sum/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://incuna.com/" }, "release_url": "https://pypi.org/project/django-boolean-sum/0.2/", "requires_dist": null, "requires_python": null, "summary": "UNKNOWN", "version": "0.2" }, "last_serial": 2038261, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "47e1a4bc5e6c17f2acf34f6694802143", "sha256": "b5b7ca303a49a40cf1ede144038dffbbadd0b9e84882658dd9e984580dbe51fc" }, "downloads": -1, "filename": "django-boolean-sum-0.1.tar.gz", "has_sig": false, "md5_digest": "47e1a4bc5e6c17f2acf34f6694802143", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1852, "upload_time": "2012-10-30T16:53:06", "url": "https://files.pythonhosted.org/packages/d5/84/36938d8668b3c558eb57d5ecd33ad0ca35070588b591f51f14ff41b193fe/django-boolean-sum-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "d9069a0461b2d55fd1b91ed3e15f8e72", "sha256": "e71e1ed4c18f64ff6e5cffcfc17696f4829304f4565bcd69142f1da4071170ff" }, "downloads": -1, "filename": "django_boolean_sum-0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "d9069a0461b2d55fd1b91ed3e15f8e72", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 3444, "upload_time": "2016-03-31T14:19:14", "url": "https://files.pythonhosted.org/packages/82/e6/206a39d9f72afa0bd276bc3f5bdff20faee77b37450d3da7184f2788c3e5/django_boolean_sum-0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b78681453bd6ae6f71dfe9e8e419f253", "sha256": "2902c9d78d89519acdc3ab631d9a0a25cc7d563699dbbbbecb1af81456ab7db6" }, "downloads": -1, "filename": "django-boolean-sum-0.2.tar.gz", "has_sig": false, "md5_digest": "b78681453bd6ae6f71dfe9e8e419f253", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1859, "upload_time": "2016-03-31T14:18:44", "url": "https://files.pythonhosted.org/packages/56/63/89e7987b4f498a17dc54dc17d67ab1db764e8a654369be75f5c0d2dbd88e/django-boolean-sum-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d9069a0461b2d55fd1b91ed3e15f8e72", "sha256": "e71e1ed4c18f64ff6e5cffcfc17696f4829304f4565bcd69142f1da4071170ff" }, "downloads": -1, "filename": "django_boolean_sum-0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "d9069a0461b2d55fd1b91ed3e15f8e72", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 3444, "upload_time": "2016-03-31T14:19:14", "url": "https://files.pythonhosted.org/packages/82/e6/206a39d9f72afa0bd276bc3f5bdff20faee77b37450d3da7184f2788c3e5/django_boolean_sum-0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b78681453bd6ae6f71dfe9e8e419f253", "sha256": "2902c9d78d89519acdc3ab631d9a0a25cc7d563699dbbbbecb1af81456ab7db6" }, "downloads": -1, "filename": "django-boolean-sum-0.2.tar.gz", "has_sig": false, "md5_digest": "b78681453bd6ae6f71dfe9e8e419f253", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1859, "upload_time": "2016-03-31T14:18:44", "url": "https://files.pythonhosted.org/packages/56/63/89e7987b4f498a17dc54dc17d67ab1db764e8a654369be75f5c0d2dbd88e/django-boolean-sum-0.2.tar.gz" } ] }