{ "info": { "author": "Xacce", "author_email": "thiscie@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7" ], "description": "pip install django_extra_migrations\n\n# Resave\n\n*Resave all records with calling save and signals events*\n\nCreate empty migration - ```./manage.py makemigrations %APP_NAME% --empty```\n\nOpen migration file ./%APP_NAME%/migrations/%MIGRATION_NAME%.py\n\n###Import\n\n from django_extra_migrations.migrations import Resave\n \n###Operation\n\n Resave(\"%APP_NAME%.%MODEL_NAME%\"),\n \n###Example:\n \n from __future__ import unicode_literals\n from django.db import models, migrations\n from django_extra_migrations.migrations import Resave, GrantPermissions\n\n\n class Migration(migrations.Migration):\n dependencies = [\n ('tree', '0078_auto_20151014_1500'),\n ]\n\n operations = [\n Resave(\"tree.Resource\"),\n ]\n\n---\n\n#GrantPermissions\n\n*Grant permissions to groups*\n\nCreate empty migration - ```./manage.py makemigrations %APP_NAME% --empty```\n\nOpen migration file ./%APP_NAME%/migrations/%MIGRATION_NAME%.py\n\n###Import\n\n from django_extra_migrations.migrations import GrantPermissions\n \n###Operation\n \n GrantPermissions([\"%GROUP_NAME%\"], (\n (\"%APP_NAME%.%MODEL_NAME%\", True), # IF true - grant ALL perms for this content type\n (\"%APP_NAME%.%MODEL_NAME%\", [\"add_%LOWER_MODEL_NAME%\"]),\n (\"%APP_NAME%.%MODEL_NAME%\", [\"change_%LOWER_MODEL_NAME%\"]),\n (\"%APP_NAME%.%MODEL_NAME%\", [\"delete_%LOWER_MODEL_NAME%\"]),\n )),\n \n \n###Example:\n \n from __future__ import unicode_literals\n \n from django.db import models, migrations\n from django_extra_migrations.migrations import GrantPermissions\n \n \n class Migration(migrations.Migration):\n dependencies = [\n ('tree', '0078_auto_20151014_1500'),\n ]\n \n operations = [\n GrantPermissions([\"Admins\"], (\n (\"tree.Resource\", True),\n (\"tree.ResourceFile\", [\"add_resourcefile\"]),\n )),\n ]", "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/xacce/django_extra_migrations", "keywords": "django migrations permissions models", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django_extra_migrations", "package_url": "https://pypi.org/project/django_extra_migrations/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django_extra_migrations/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/xacce/django_extra_migrations" }, "release_url": "https://pypi.org/project/django_extra_migrations/0.0.7/", "requires_dist": null, "requires_python": null, "summary": "Extra migration classes for django", "version": "0.0.7" }, "last_serial": 1902701, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "5b88ebea5dbe71d2222dda26f7ecb44c", "sha256": "74caa0e91cf6b2560c8054d30b1d26c28c6c9ce3978fc39675488ddd13c53685" }, "downloads": -1, "filename": "django_extra_migrations-0.0.1.tar.gz", "has_sig": false, "md5_digest": "5b88ebea5dbe71d2222dda26f7ecb44c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2660, "upload_time": "2015-10-14T13:18:58", "url": "https://files.pythonhosted.org/packages/6b/0e/9b024c6606f09abf5148e389f5f8cb83e56667eb274c833c96cb9b0423a7/django_extra_migrations-0.0.1.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "ae3d4aa11834709fbef7e97afb9fa963", "sha256": "3c6e6cee3d9d2731885b3d82107c4250f4bbae954681b9d2b4c1ca81b2dfa75d" }, "downloads": -1, "filename": "django_extra_migrations-0.0.3.tar.gz", "has_sig": false, "md5_digest": "ae3d4aa11834709fbef7e97afb9fa963", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2701, "upload_time": "2015-12-29T18:50:48", "url": "https://files.pythonhosted.org/packages/8a/a0/25485c6d084373e1880768445b7b0e8efb69b21a7e2fd3bcf8114df4951b/django_extra_migrations-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "82b7bd9e1faf393a2d2f4d258311b9e7", "sha256": "f676a61d795869f6b51b03e8c82b71687053f99f7c416ad885bc02180956c15d" }, "downloads": -1, "filename": "django_extra_migrations-0.0.4.tar.gz", "has_sig": false, "md5_digest": "82b7bd9e1faf393a2d2f4d258311b9e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2704, "upload_time": "2016-01-13T12:14:46", "url": "https://files.pythonhosted.org/packages/a8/c1/3e41c7b2c981610262a7f49bd5db2e4cc9981149b0770fafa40f37a8a853/django_extra_migrations-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "add9e00170ecc4358da517852e3ee386", "sha256": "0335b3d7deb3db3a4513dcf140d619a63a0b81e500a3b53529036aa2c98540d2" }, "downloads": -1, "filename": "django_extra_migrations-0.0.5.tar.gz", "has_sig": false, "md5_digest": "add9e00170ecc4358da517852e3ee386", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2735, "upload_time": "2016-01-13T12:18:15", "url": "https://files.pythonhosted.org/packages/72/f5/42fc5de8e4bc4cd453700895ce35eaad801571b3cee2cb2b219fff290fad/django_extra_migrations-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "ec02fdff389eeb75b27ae85467516343", "sha256": "77b09aff4ad26b17e95374af9b65ad9a5cdae93be33bfc793c0d75cdf984df9a" }, "downloads": -1, "filename": "django_extra_migrations-0.0.6.tar.gz", "has_sig": false, "md5_digest": "ec02fdff389eeb75b27ae85467516343", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2735, "upload_time": "2016-01-13T12:21:23", "url": "https://files.pythonhosted.org/packages/72/0a/f42f45f34bd14d0321a1e39c5636398b868ff7b6f00c93f4555503964c6d/django_extra_migrations-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "d1c503cdd28ab4e5393b6d4121a4801b", "sha256": "2741aa6e96a9aaee035b1ff7757ba1049009eea565fd125a671e99f69f08152c" }, "downloads": -1, "filename": "django_extra_migrations-0.0.7.tar.gz", "has_sig": false, "md5_digest": "d1c503cdd28ab4e5393b6d4121a4801b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2758, "upload_time": "2016-01-13T14:32:15", "url": "https://files.pythonhosted.org/packages/15/8e/8246898c17fc080d01d8897febda4df29ead4cc51a772eec9ba6d55492aa/django_extra_migrations-0.0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d1c503cdd28ab4e5393b6d4121a4801b", "sha256": "2741aa6e96a9aaee035b1ff7757ba1049009eea565fd125a671e99f69f08152c" }, "downloads": -1, "filename": "django_extra_migrations-0.0.7.tar.gz", "has_sig": false, "md5_digest": "d1c503cdd28ab4e5393b6d4121a4801b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2758, "upload_time": "2016-01-13T14:32:15", "url": "https://files.pythonhosted.org/packages/15/8e/8246898c17fc080d01d8897febda4df29ead4cc51a772eec9ba6d55492aa/django_extra_migrations-0.0.7.tar.gz" } ] }