{ "info": { "author": "byteweaver & Xiang Wang", "author_email": "ramwin@qq.com", "bugtrack_url": null, "classifiers": [], "description": "All 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-coupons 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.\n\nDescription: # django-coupons\n \n ![build status](https://travis-ci.org/byteweaver/django-coupons.png)\n \n A reuseable Django application for coupon gereration and handling\n \n The project is inherited from [byteweaver/django-coupons](https://github.com/byteweaver/django-coupons/). But the origin project doesn't support the django 2.0 version. There are many django2.0 PR in origin [project](https://github.com/byteweaver/django-coupons/pulls), but none of them are merged. \n \n So I create a new repository and upload it to pypi as `django2-coupons`.\n \n ## Setup instructions\n \n 1. Install `django-coupons` via pip:\n ```\n $ pip install django2-coupons\n ```\n \n 2. Add `'coupons'` to `INSTALLED_APPS` in `settings.py`.\n \n 3. Migrate database:\n \n ```\n $ python manage.py migrate\n ```\n \n ## How to UpGrade\n Since the django require `on_delete` parameter for ForeignKey, The previous migrations\n is nolong usable. If you are upgrading the django-coupons, please fake the first migrations. Then you can migrate the rest migrations. If there is any problem, maybe you will have to manually modify the django migrations table.\n ```\n python3 manage.py migrate --fake coupons 0001\n python3 manage.py migrate coupons\n ```\n \n ## Supported use cases of coupons\n \n This application supports different kind of coupons in the way how they can be redeemed.\n The difference is defined by the number of possible redeems and if they are bound to a specific user (may even be a list of users) or not.\n \n 1) single time (default), coupon can be used one time without being bound to an user.\n 2) user limited, coupon can be used one time but only by a specific user.\n 3) limit number, coupon can be used a limited number of times, by any user once.\n 4) users list, coupon can be used by a defined list of users, each once.\n 5) unlimited, coupon can be used unlimited times, but only once by the same user.\n \n ## More example can been seen in the tests\n \nPlatform: UNKNOWN\nClassifier: Framework :: Django\nClassifier: Intended Audience :: Developers\nClassifier: Programming Language :: Python\nClassifier: Programming Language :: Python :: 2\nClassifier: Programming Language :: Python :: 2.7\nClassifier: Programming Language :: Python :: 3\nClassifier: Programming Language :: Python :: 3.4\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ramwin/django-coupons", "keywords": "", "license": "Copyright (c) 2013, byteweaver", "maintainer": "", "maintainer_email": "", "name": "django2-coupons", "package_url": "https://pypi.org/project/django2-coupons/", "platform": "", "project_url": "https://pypi.org/project/django2-coupons/", "project_urls": { "Homepage": "https://github.com/ramwin/django-coupons" }, "release_url": "https://pypi.org/project/django2-coupons/2.1.1/", "requires_dist": [ "django (<3,>=1.11)", "djangorestframework", "django-filter" ], "requires_python": "", "summary": "A reuseable Django application for coupon gereration and handling.", "version": "2.1.1" }, "last_serial": 5901824, "releases": { "2.0.0": [ { "comment_text": "", "digests": { "md5": "5ee9da0f16d8b7bc4bcb5552a68a6511", "sha256": "16256e27a634dc4989bee307220a02b718fbae5c6815a6e13bd236e03f201f91" }, "downloads": -1, "filename": "django2_coupons-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "5ee9da0f16d8b7bc4bcb5552a68a6511", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 27808, "upload_time": "2019-09-29T02:20:53", "url": "https://files.pythonhosted.org/packages/8d/cc/0447ad9fbb146944c69422daea3608bdd9b83a0f6f0f510ecfa94af05d0c/django2_coupons-2.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2c5ca19334ae95b1c38ea7c8019096b0", "sha256": "ac40a9e6cbb4e523201db9f5048fb57316f10466e87d0f8809a98d81aabbf113" }, "downloads": -1, "filename": "django2-coupons-2.0.0.tar.gz", "has_sig": false, "md5_digest": "2c5ca19334ae95b1c38ea7c8019096b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17270, "upload_time": "2019-09-29T02:20:57", "url": "https://files.pythonhosted.org/packages/46/f1/add1b8df9f75e0122adc09554b166cbc42b59eebc41fb158bfd3bb6fcabd/django2-coupons-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "9a0d56ea1558c30010752225002ec758", "sha256": "9d82705087a264ab2b0bcea8732a8a4c03e426781ca5cff38f063d1fc820c216" }, "downloads": -1, "filename": "django2_coupons-2.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9a0d56ea1558c30010752225002ec758", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 28350, "upload_time": "2019-09-29T02:43:32", "url": "https://files.pythonhosted.org/packages/ef/16/adef4b3d228298a8bb0e9e953c9964b586722e99549da4d6ddaa07edb499/django2_coupons-2.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e0e54e09cb23f3c9db07d01f6f2dae99", "sha256": "aa580fd35b0e48a1676a663549c1f371b7c8f04236dde3c443627565e3b944ce" }, "downloads": -1, "filename": "django2-coupons-2.0.1.tar.gz", "has_sig": false, "md5_digest": "e0e54e09cb23f3c9db07d01f6f2dae99", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17411, "upload_time": "2019-09-29T02:43:36", "url": "https://files.pythonhosted.org/packages/ae/73/f8a7931cd30a65c842e5553d9c48f02c0d02ff1080bfce15440b599b09ed/django2-coupons-2.0.1.tar.gz" } ], "2.0.2": [ { "comment_text": "", "digests": { "md5": "a679dddcedb8d183837889c29c4e4007", "sha256": "3b235714623701cb81251ee50555a4f3d463c87c8116fc8805fa2fc754ca95ef" }, "downloads": -1, "filename": "django2_coupons-2.0.2-py3.7.egg", "has_sig": false, "md5_digest": "a679dddcedb8d183837889c29c4e4007", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 58665, "upload_time": "2019-09-29T02:56:04", "url": "https://files.pythonhosted.org/packages/9c/84/72e8a1437542e1a0e9aa978e480e910fb0d1e5caea287bba51bb969c45f5/django2_coupons-2.0.2-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "0c0017c60bf90a86979a5c282b82fc85", "sha256": "823a3656379cf1afd9763c0fdedb48a3b80ac7dd005e36935035c258d08200a2" }, "downloads": -1, "filename": "django2_coupons-2.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "0c0017c60bf90a86979a5c282b82fc85", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 28350, "upload_time": "2019-09-29T02:56:00", "url": "https://files.pythonhosted.org/packages/89/1c/baa0cded7f1af51ad51c18d327d47a0bce00b04bc3d48f7fc8388a6ff972/django2_coupons-2.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c59c4f7976ad7f6e8e549f4a91b6c0e6", "sha256": "653c3b899af58db91c8713b7434043a4bb947ffec16129cc2708e853626d2d02" }, "downloads": -1, "filename": "django2-coupons-2.0.2.tar.gz", "has_sig": false, "md5_digest": "c59c4f7976ad7f6e8e549f4a91b6c0e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17404, "upload_time": "2019-09-29T02:56:06", "url": "https://files.pythonhosted.org/packages/4f/e5/1035b0690369ecd200890824e0f6465d53efbb26890877c649145e9faadb/django2-coupons-2.0.2.tar.gz" } ], "2.0.3": [ { "comment_text": "", "digests": { "md5": "7008f9d8ee9d86965e9180f7684039a1", "sha256": "743c8363380c10bf6f3d2625145099e190ec238e2f3b053181264fcee10a4561" }, "downloads": -1, "filename": "django2_coupons-2.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "7008f9d8ee9d86965e9180f7684039a1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 28357, "upload_time": "2019-09-29T03:16:44", "url": "https://files.pythonhosted.org/packages/de/6b/ea970d92317767141fe59200e1bf0199ab0022df18b720cba0ec4ea2014b/django2_coupons-2.0.3-py3-none-any.whl" } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "1a6a2965174040552ae6e49c88163e08", "sha256": "ae370cff252fbd71a28ef43849ba16a07bb39a8a3232abf806edab1ad8a20c5e" }, "downloads": -1, "filename": "django2_coupons-2.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "1a6a2965174040552ae6e49c88163e08", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 30142, "upload_time": "2019-09-29T06:37:00", "url": "https://files.pythonhosted.org/packages/4b/dc/423d1b7c94722aaf6c7812a98afa325aca8691a87764ce97ab737dccb937/django2_coupons-2.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5de0bba1875b4b6a44974f1bd2577b36", "sha256": "7dcc501709c1da0547d117b80aa798eaa8870103e78ef4127ce439753ed57dbf" }, "downloads": -1, "filename": "django2-coupons-2.1.0.tar.gz", "has_sig": false, "md5_digest": "5de0bba1875b4b6a44974f1bd2577b36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18284, "upload_time": "2019-09-29T06:38:15", "url": "https://files.pythonhosted.org/packages/cf/3a/f434a6b7fcc7e89883faad98206fa979af2217aa9ee04266c1c6e93b3858/django2-coupons-2.1.0.tar.gz" } ], "2.1.1": [ { "comment_text": "", "digests": { "md5": "b80a34420be6dd04ec08d3d75b96a451", "sha256": "af22a986ab6fdc32af8429dd7e59cfae0d5da00b6edce1287165f6b7f0039eb8" }, "downloads": -1, "filename": "django2_coupons-2.1.1-py3.7.egg", "has_sig": false, "md5_digest": "b80a34420be6dd04ec08d3d75b96a451", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 62813, "upload_time": "2019-09-29T06:56:56", "url": "https://files.pythonhosted.org/packages/b3/1e/40a931b235179e2f54a609dc434531dbe49bf6d4307a1b9af7e4ea443a63/django2_coupons-2.1.1-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "89e1b50099a7a9c3817aa0327c7ab499", "sha256": "952ed583a62eebb4bd47984c4c1938341420fa9845cc2bb6de1e9d6d073ae4eb" }, "downloads": -1, "filename": "django2_coupons-2.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "89e1b50099a7a9c3817aa0327c7ab499", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 30133, "upload_time": "2019-09-29T06:56:54", "url": "https://files.pythonhosted.org/packages/f1/47/95df8116808f7c308a1421306138f67756f8be3b8f8e03151cf2d1c14dbe/django2_coupons-2.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d18f4e3765095dd2591833d4dccbb351", "sha256": "05ae59893834b9e3fd79ed8935600f921fc77e0c38082736dab0e420fa5aa51e" }, "downloads": -1, "filename": "django2-coupons-2.1.1.tar.gz", "has_sig": false, "md5_digest": "d18f4e3765095dd2591833d4dccbb351", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18272, "upload_time": "2019-09-29T06:56:59", "url": "https://files.pythonhosted.org/packages/3c/b0/907514793e16201c998dac3a45dbc1dab1c64b19433b668a3411f515c1c3/django2-coupons-2.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b80a34420be6dd04ec08d3d75b96a451", "sha256": "af22a986ab6fdc32af8429dd7e59cfae0d5da00b6edce1287165f6b7f0039eb8" }, "downloads": -1, "filename": "django2_coupons-2.1.1-py3.7.egg", "has_sig": false, "md5_digest": "b80a34420be6dd04ec08d3d75b96a451", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 62813, "upload_time": "2019-09-29T06:56:56", "url": "https://files.pythonhosted.org/packages/b3/1e/40a931b235179e2f54a609dc434531dbe49bf6d4307a1b9af7e4ea443a63/django2_coupons-2.1.1-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "89e1b50099a7a9c3817aa0327c7ab499", "sha256": "952ed583a62eebb4bd47984c4c1938341420fa9845cc2bb6de1e9d6d073ae4eb" }, "downloads": -1, "filename": "django2_coupons-2.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "89e1b50099a7a9c3817aa0327c7ab499", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 30133, "upload_time": "2019-09-29T06:56:54", "url": "https://files.pythonhosted.org/packages/f1/47/95df8116808f7c308a1421306138f67756f8be3b8f8e03151cf2d1c14dbe/django2_coupons-2.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d18f4e3765095dd2591833d4dccbb351", "sha256": "05ae59893834b9e3fd79ed8935600f921fc77e0c38082736dab0e420fa5aa51e" }, "downloads": -1, "filename": "django2-coupons-2.1.1.tar.gz", "has_sig": false, "md5_digest": "d18f4e3765095dd2591833d4dccbb351", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18272, "upload_time": "2019-09-29T06:56:59", "url": "https://files.pythonhosted.org/packages/3c/b0/907514793e16201c998dac3a45dbc1dab1c64b19433b668a3411f515c1c3/django2-coupons-2.1.1.tar.gz" } ] }