{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "License :: Public Domain", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "\n\n[](https://pypi.org/project/django-update-from-dict/)\n\n#### Installation\n```bash\n$ [sudo] pip install django-update-from-dict\n```\n\n#### Classes\nclass|`__doc__`\n-|-\n`django_update_from_dict.UpdateFromDictMixin` |Update Django model from dictionary\n\n#### Functions\nfunction|`__doc__`\n-|-\n`django_update_from_dict.update_from_dict(instance, attrs, commit)` |Update Django model from dictionary\n\n#### Examples\nMixin:\n```python\nfrom django.db import models\nfrom django_update_from_dict import update_from_dict, UpdateFromDictMixin\n\nclass ClassName(UpdateFromDictMixin,models.Model):\n ...\n\ninstance = ClassName()\ninstance.update_from_dict(attrs,commit=True)\n```\n\nfunction:\n```python\nfrom django_update_from_dict import update_from_dict\n\nupdate_from_dict(instance,attrs,commit=True)\n```\n\n
", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/andrewp-as-is/django-update-from-dict.py", "keywords": "django update dict", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-update-from-dict", "package_url": "https://pypi.org/project/django-update-from-dict/", "platform": "", "project_url": "https://pypi.org/project/django-update-from-dict/", "project_urls": { "Homepage": "https://github.com/andrewp-as-is/django-update-from-dict.py" }, "release_url": "https://pypi.org/project/django-update-from-dict/2019.4.13/", "requires_dist": null, "requires_python": "", "summary": "Update Django model from dictionary", "version": "2019.4.13" }, "last_serial": 5796646, "releases": { "2019.4.13": [ { "comment_text": "", "digests": { "md5": "93f5ad4be44eee5aafc7d903cb4d1837", "sha256": "39ebffd923d9312a67929c82da6caefe757d930408a5ea774c62a063357de806" }, "downloads": -1, "filename": "django-update-from-dict-2019.4.13.tar.gz", "has_sig": false, "md5_digest": "93f5ad4be44eee5aafc7d903cb4d1837", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1559, "upload_time": "2019-09-07T16:32:34", "url": "https://files.pythonhosted.org/packages/8e/e2/f54fe796e5c127344b6289e6243050c1c5d0f907eb92184990e5438be967/django-update-from-dict-2019.4.13.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "93f5ad4be44eee5aafc7d903cb4d1837", "sha256": "39ebffd923d9312a67929c82da6caefe757d930408a5ea774c62a063357de806" }, "downloads": -1, "filename": "django-update-from-dict-2019.4.13.tar.gz", "has_sig": false, "md5_digest": "93f5ad4be44eee5aafc7d903cb4d1837", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1559, "upload_time": "2019-09-07T16:32:34", "url": "https://files.pythonhosted.org/packages/8e/e2/f54fe796e5c127344b6289e6243050c1c5d0f907eb92184990e5438be967/django-update-from-dict-2019.4.13.tar.gz" } ] }