{ "info": { "author": "Pablo Martin", "author_email": "goinnn@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Programming Language :: Python :: 2" ], "description": "django-model-history\n====================\n\n.. image:: https://travis-ci.org/goinnn/django-model-history.png\n :target: https://travis-ci.org/goinnn/django-model-history\n\n.. image:: https://coveralls.io/repos/goinnn/django-model-history/badge.png\n :target: https://coveralls.io/r/goinnn/django-model-history\n\n.. image:: https://badge.fury.io/py/django-model-history.png\n :target: https://badge.fury.io/py/django-model-history\n\nEnable in any Model class an change history of all inserts, updates and deletes\n\nInstallation\n============\n\nIn your settings.py\n-------------------\n\n::\n\n INSTALLED_APPS = (\n 'django.contrib.auth',\n 'django.contrib.contenttypes',\n 'django.contrib.sessions',\n 'django.contrib.sites',\n 'django.contrib.admin',\n\n #.....................#\n\n 'model_history',\n )\n\n\nOption 1: In your models.py\n---------------------------\n\nYou only must to update the parent class of your model.\n\n::\n\n from django.db import models\n\n\n class MyModel(models.Model):\n ....\n\n\n\n::\n\n from model_history.models import ModelHistoryProvider\n\n\n class MyModel(ModelHistoryProvider):\n ....\n\n ...\n\n`Option 1 example `_.\n\n\nOption 2: In your models.py\n---------------------------\n\nOr you can call directly to the create_history_model_class function\n\n::\n\n from django.db import models\n\n\n from model_history.models import create_history_model_class, BaseModelHistory\n\n class MyModel(models.Model):\n ....\n\n\n MyModelHistory = create_history_model_class(MyModel, (BaseModelHistory,))\n\n\n`Option 2 example `_.\n\n\nDevelopment\n===========\n\nYou can get the last bleeding edge version of django-model-history by doing a clone\nof its git repository\n\n::\n\n git clone https://github.com/goinnn/django-model-history\n\n\nExample project\n===============\n\n.. image:: https://raw.githubusercontent.com/goinnn/django-model-history/0.1.0/example/uml.png\n :target: https://github.com/goinnn/django-model-history/tree/0.1.0/example/news/models.py\n\nIn the source tree, you will find a directory called `example `_. It contains\na readily setup project that uses django-model-history. You can run it as usual:\n\n::\n\n python manage.py makemigrations\n python manage.py syncdb --noinput\n python manage.py runserver\n\n\nAccess in a browser to http://localhost:8000/\n\n0.1.2 (2015-04-24)\n------------------\n\n* Fix typo errors\n\n\n0.1.1 (2015-04-24)\n------------------\n\n* Fix typo errors\n\n0.1.0 (2015-04-24)\n------------------\n\n* Initial version", "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/goinnn/django-model-history", "keywords": "django,model,changes history", "license": "LGPL 3", "maintainer": null, "maintainer_email": null, "name": "django-model-history", "package_url": "https://pypi.org/project/django-model-history/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-model-history/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/goinnn/django-model-history" }, "release_url": "https://pypi.org/project/django-model-history/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Enable in any Model class an change history of all inserts, updates and deletes", "version": "0.1.2" }, "last_serial": 1521857, "releases": { "0.1.0": [], "0.1.1": [ { "comment_text": "", "digests": { "md5": "b73b868e2e69cb9cce1f268843444d48", "sha256": "d71c0614e35b43afa7d7a154d906e04d206ebec2c494ce1bf5fb4f92a64ef6a2" }, "downloads": -1, "filename": "django-model-history-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b73b868e2e69cb9cce1f268843444d48", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4905, "upload_time": "2015-04-26T17:16:13", "url": "https://files.pythonhosted.org/packages/38/98/15efc66518b405d00dbbb0a884e98b0cc60e201141090652c8378d933d8b/django-model-history-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "6f8d86376e721ce044175a6dc1a95e59", "sha256": "cb709260be5c91e3c167718bc2effa6852b330474caa760f310c7d407903247f" }, "downloads": -1, "filename": "django-model-history-0.1.2.tar.gz", "has_sig": false, "md5_digest": "6f8d86376e721ce044175a6dc1a95e59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4907, "upload_time": "2015-04-26T17:29:43", "url": "https://files.pythonhosted.org/packages/c6/ff/9b194214f7619e28ef28f39b4e69ddbb0067564e6133543bf1073e1c8498/django-model-history-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6f8d86376e721ce044175a6dc1a95e59", "sha256": "cb709260be5c91e3c167718bc2effa6852b330474caa760f310c7d407903247f" }, "downloads": -1, "filename": "django-model-history-0.1.2.tar.gz", "has_sig": false, "md5_digest": "6f8d86376e721ce044175a6dc1a95e59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4907, "upload_time": "2015-04-26T17:29:43", "url": "https://files.pythonhosted.org/packages/c6/ff/9b194214f7619e28ef28f39b4e69ddbb0067564e6133543bf1073e1c8498/django-model-history-0.1.2.tar.gz" } ] }