{ "info": { "author": "Bang Dao", "author_email": "daotranbang@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.11", "Framework :: Django :: 2.0", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=====\nModel Duplication\n=====\n\nDjango admin have `save_as` feature, but that feature have bug with images field, and sometime you want 100% duplication of a model instance with all other related objects and customization, then `save_as` doesn't fit for that purpose.\n\n.. image:: https://coveralls.io/repos/github/squallcs12/django-modelduplication/badge.svg?branch=master\n:target: https://coveralls.io/github/squallcs12/django-modelduplication?branch=master\n\n\nQuick start\n-----------\n\n1. Add \"modelduplication\" to your INSTALLED_APPS setting like this:\n\n.. code-block:: python\n\n INSTALLED_APPS = [\n # ... \n 'modelduplication',\n ]\n\n\n2. Define `pre_duplicate` and `post_duplicate` to your models to customize duplication process:\n\n.. code-block:: python\n\n class Book(models.Model):\n def pre_duplicate(self, origin, first_level):\n \"\"\"This method use to modify object before `save` on duplication.\n :type origin models.Model\n :type first_level bool\n :param first_level is the root level of duplication\n :param origin the origin instance\n \"\"\" \n pass\n\n def post_duplicate(self, origin):\n \"\"\"This method is called after finishing the duplication.\n :type origin models.Model\n :param origin the origin instance\n \"\"\" \n pass", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/squallcs12/django-modelduplication", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "django-modelduplication", "package_url": "https://pypi.org/project/django-modelduplication/", "platform": "", "project_url": "https://pypi.org/project/django-modelduplication/", "project_urls": { "Homepage": "https://github.com/squallcs12/django-modelduplication" }, "release_url": "https://pypi.org/project/django-modelduplication/0.1.4/", "requires_dist": null, "requires_python": "", "summary": "A simple Django app to duplicate model instance in admin.", "version": "0.1.4" }, "last_serial": 3446688, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "efc9af73acb97076ffd2eee51cfb90e1", "sha256": "96e0ee9767745f336c5c1032af0959627396f70c97d877ae8ea1739407b583fd" }, "downloads": -1, "filename": "django-modelduplication-0.1.tar.gz", "has_sig": false, "md5_digest": "efc9af73acb97076ffd2eee51cfb90e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2640, "upload_time": "2017-12-27T05:41:43", "url": "https://files.pythonhosted.org/packages/12/74/f65d567a2445312627e0798d422f27e94db6277f9c276e889da99cdb83a4/django-modelduplication-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e096e3bcbd4fc32ecc74bb218b0a5517", "sha256": "3554b284e86677ddaa342c9913bfeab130ce9f583adea342767ae61bb311b69f" }, "downloads": -1, "filename": "django-modelduplication-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e096e3bcbd4fc32ecc74bb218b0a5517", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2675, "upload_time": "2017-12-27T06:15:45", "url": "https://files.pythonhosted.org/packages/1c/79/02e77fb03a5fac1f74160b905d56880f621ac5b04070f1fdab47a3ee272c/django-modelduplication-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "f019309d56a61c887b4ec067a20971f6", "sha256": "3bfffdf74cefe395a5eaa61e1abaffddf035007452a5415038fd7996e9de18b2" }, "downloads": -1, "filename": "django-modelduplication-0.1.2.tar.gz", "has_sig": false, "md5_digest": "f019309d56a61c887b4ec067a20971f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2692, "upload_time": "2017-12-27T06:19:00", "url": "https://files.pythonhosted.org/packages/20/5b/3f8dafd2e6e81d9792dd9a36870c4f8053dea879b47cdde428f11fec4b65/django-modelduplication-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "3a01b50b3b58389eaa4bc661157f7d70", "sha256": "de2261467f319394e76685b3675d407210e55a1aca6538b3d9259b10f36895f0" }, "downloads": -1, "filename": "django-modelduplication-0.1.3.tar.gz", "has_sig": false, "md5_digest": "3a01b50b3b58389eaa4bc661157f7d70", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2698, "upload_time": "2017-12-27T06:24:33", "url": "https://files.pythonhosted.org/packages/d1/1e/087ef17060c2522db58d8337664ea75395e30995d5809bef94af94e420f0/django-modelduplication-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "3063ba05806e3dee8c1effd0fa251ca6", "sha256": "710904a493d3d0b31d744c02c00e60c587c9e9e510f6c90c07b13d1283eb1d99" }, "downloads": -1, "filename": "django-modelduplication-0.1.4.tar.gz", "has_sig": false, "md5_digest": "3063ba05806e3dee8c1effd0fa251ca6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2904, "upload_time": "2017-12-28T05:43:19", "url": "https://files.pythonhosted.org/packages/0d/e3/24cc2f4f6ed8673345802f0fcc59bce24fa7bd32b2e53b6dc8e5445399e5/django-modelduplication-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3063ba05806e3dee8c1effd0fa251ca6", "sha256": "710904a493d3d0b31d744c02c00e60c587c9e9e510f6c90c07b13d1283eb1d99" }, "downloads": -1, "filename": "django-modelduplication-0.1.4.tar.gz", "has_sig": false, "md5_digest": "3063ba05806e3dee8c1effd0fa251ca6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2904, "upload_time": "2017-12-28T05:43:19", "url": "https://files.pythonhosted.org/packages/0d/e3/24cc2f4f6ed8673345802f0fcc59bce24fa7bd32b2e53b6dc8e5445399e5/django-modelduplication-0.1.4.tar.gz" } ] }