{ "info": { "author": "Leandro Souza", "author_email": "lsouzarj@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "****************************************\ndjango simple audit\n****************************************\nThis applications was created to audit model's changes and maintain a log of them\n\n\nInstallation\n===============\nYou can install django-simple-audit in 2 ways: using pip or by setup.py install\n\n.. code-block:: bash\n\n $ pip install django-simple-audit\n\n\nThen modify your settings.py, adding the package `simple_audit` in INSTALLED_APPS and in MIDDLEWARE_CLASSES add\n`simple_audit.middleware.TrackingRequestOnThreadLocalMiddleware`:\n\n.. code-block:: bash\n\n\tINSTALLED_APPS = (\n\t '...',\n\t 'simple_audit',\n\t)\n\n\tMIDDLEWARE_CLASSES = (\n\t '...',\n\t 'simple_audit.middleware.TrackingRequestOnThreadLocalMiddleware',\n\t)\n\n\tDJANGO_SIMPLE_AUDIT_ACTIVATED = True\n\nUsage\n======\n\nTracking changes on a model\n----------------------------\n\nto audit a model you need import `simple_audit` and then register the model to be audited.\n\n.. code-block:: python\n\n\tfrom django.db import models\n\timport simple_audit\n\n\n\tclass Message(models.Model):\n\n\t title = models.CharField(max_length=50, blank=False)\n\t text = models.TextField(blank=False)\n\n\t def __unicode__(self):\n\t return self.text\n\n\n\tclass Owner(models.Model):\n\n\t name = models.CharField(max_length=50, blank=False)\n\n\t def __unicode__(self):\n\t return self.name\n\n\n\tclass VirtualMachine(models.Model):\n\n\t name = models.CharField(max_length=50, blank=False)\n\t cpus = models.IntegerField()\n\t owner = models.ForeignKey(Owner)\n\t so = models.CharField(max_length=100, blank=False)\n\t started = models.BooleanField()\n\n\t def __unicode__(self):\n\t return self.name\n\n\n\tsimple_audit.register(Message, Owner, VirtualMachine)\n\nAdvanced Usage (without httprequest or our middleware)\n--------------------------------------------------------\n\nYou can use django-simple-audit without an http request (for example in management command). In this situation\nthere is no http request on thread context. To ensure gathering all modification on a single AuditRequest, you can\nspecify it:\n\n.. code-block:: python\n\n\tAuditRequest.new_request(path, user, ip)\n\ttry:\n\t # my code... in same thread\n\tfinally:\n\t AuditRequest.cleanup_request()\n\nTracking m2m fields changes\n----------------------------\n\nTracking m2m fields changes is still experimental, but you can enable it with the following variable:\n\n DJANGO_SIMPLE_AUDIT_M2M_FIELDS = True\n\nYou need to have at least one cache backend set in your django settings, otherwise the previous settings will be set to False.\n\n CACHES = {\n 'default': {\n 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',\n 'LOCATION': 'unique',\n 'TIMEOUT': 300,\n }\n }\n\nDependencies\n============\n\n* Django >= 1.4.x\n* django.contrib.contenttypes installed in INSTALLED_APPS\n\n\nTODO\n====\n* Improve tests\n\nCHANGELOG\n=========\n* 0.1.21\n\t* Problems with upload to pypi ( the version was used ) - Sux \n\n* 0.1.20\n * Add .get_queryset to AuditManager ( thanks sburns )\n\n* 0.1.19\n\t* Tracking user from Django REST Framework authentication ( thanks jnishiyama )\n\n* 0.1.15\n\t* use larger TextField for storing values ( thanks dinie )\n\t* Czech translation ( thanks cuchac )\n\n* 0.1.14\n\t* improved m2m audit feature ( thanks dinie )\n * Add support for Custom user model ( thanks dinie )\n * Option to turn on/off auditing ( thanks dinie )\n\n* 0.1.12\n * Created some simple tests\n * Enable many to many fiedls tracking (see Usage)", "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/leandrosouza/django-simple-audit", "keywords": "revisions versioning history audit", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-simple-audit", "package_url": "https://pypi.org/project/django-simple-audit/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-simple-audit/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/leandrosouza/django-simple-audit" }, "release_url": "https://pypi.org/project/django-simple-audit/0.1.22/", "requires_dist": null, "requires_python": null, "summary": "Simple audit for model instances in Django.", "version": "0.1.22" }, "last_serial": 2654992, "releases": { "0.1.12b": [ { "comment_text": "", "digests": { "md5": "48691ad54a333b163dfbbedfa2ebeac4", "sha256": "4c4fc5a55d2f2e432ca48b7748ed983260eb03679613673dfc7d80597fcdc2d6" }, "downloads": -1, "filename": "django-simple-audit-0.1.12b.tar.gz", "has_sig": false, "md5_digest": "48691ad54a333b163dfbbedfa2ebeac4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11631, "upload_time": "2014-10-13T00:25:25", "url": "https://files.pythonhosted.org/packages/b2/2c/9f313ba3392b4ecf782b4a2ac7a722943b2c3d9ca7eadb4e644403c4bd5f/django-simple-audit-0.1.12b.tar.gz" } ], "0.1.13b": [ { "comment_text": "", "digests": { "md5": "feeb8c2761c77f4c52104bc058305150", "sha256": "2d922af57bc0c87aa39361952211708e9643689a780f34411f9ad91940d419a4" }, "downloads": -1, "filename": "django-simple-audit-0.1.13b.tar.gz", "has_sig": false, "md5_digest": "feeb8c2761c77f4c52104bc058305150", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12341, "upload_time": "2014-10-13T00:25:31", "url": "https://files.pythonhosted.org/packages/2c/ab/395cec14a89f43b172266b8a720d130edd5490cd82dc7534c4426ce053c1/django-simple-audit-0.1.13b.tar.gz" } ], "0.1.13c": [ { "comment_text": "", "digests": { "md5": "5da7ab9e901e09a6342322c7290eb5bb", "sha256": "13f93dfa393914d8b7747f9ae1f2f10dedf06342b05336399a4544b3eae4102d" }, "downloads": -1, "filename": "django-simple-audit-0.1.13c.tar.gz", "has_sig": false, "md5_digest": "5da7ab9e901e09a6342322c7290eb5bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12318, "upload_time": "2014-10-13T00:25:37", "url": "https://files.pythonhosted.org/packages/11/42/545e2b3f9b460e6717ad6fbc566f53b56624de41ee406405a8618cbfe1d6/django-simple-audit-0.1.13c.tar.gz" } ], "0.1.14": [ { "comment_text": "", "digests": { "md5": "b968e51ba4aab74c6a5f3ae57a096a25", "sha256": "2078910bc82d8fec7899b1beeb00c4c05d71dbe35a4987615c6ba57aca64a57c" }, "downloads": -1, "filename": "django-simple-audit-0.1.14.tar.gz", "has_sig": false, "md5_digest": "b968e51ba4aab74c6a5f3ae57a096a25", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12691, "upload_time": "2014-10-13T00:25:49", "url": "https://files.pythonhosted.org/packages/e5/67/4705bb1c9461edf47dfbeb1cc3061d5274c120aa01712c4d6043142233b1/django-simple-audit-0.1.14.tar.gz" } ], "0.1.15": [ { "comment_text": "", "digests": { "md5": "1f3c7212b7da4d06904ffa0c3f6078c1", "sha256": "7f38d76c485edc04b893d56443a6b42b0c029c5aaf4da23353f0a034b7e1aef7" }, "downloads": -1, "filename": "django-simple-audit-0.1.15.tar.gz", "has_sig": false, "md5_digest": "1f3c7212b7da4d06904ffa0c3f6078c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14017, "upload_time": "2014-10-13T00:25:55", "url": "https://files.pythonhosted.org/packages/87/a4/6eef7796c0745fee9238a9c40299065621e68ac8af17bfc1052b9c127d5b/django-simple-audit-0.1.15.tar.gz" } ], "0.1.16": [ { "comment_text": "", "digests": { "md5": "cfb1988e7737ea982dba678561a8001c", "sha256": "13d3351bc3484309c3034512c5bba867c81dfe5b2a5568f654bc3749a71ad833" }, "downloads": -1, "filename": "django-simple-audit-0.1.16.tar.gz", "has_sig": false, "md5_digest": "cfb1988e7737ea982dba678561a8001c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14044, "upload_time": "2014-10-12T21:02:20", "url": "https://files.pythonhosted.org/packages/0d/c9/eaa2173d7560b10ae56165a1754363c1436d6b936728e776af40baafba56/django-simple-audit-0.1.16.tar.gz" } ], "0.1.17": [ { "comment_text": "", "digests": { "md5": "c3ff00759bda1f176f8fc434c4ba0485", "sha256": "1b40b6220d29070c0b63271b457ad0f95cd74fb0bee84a45cbe6624c7168f416" }, "downloads": -1, "filename": "django-simple-audit-0.1.17.tar.gz", "has_sig": false, "md5_digest": "c3ff00759bda1f176f8fc434c4ba0485", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14049, "upload_time": "2014-10-13T00:16:42", "url": "https://files.pythonhosted.org/packages/a5/0e/410e1327387672d23a6ddacc6f11fc007cff2525f7c1429d271fafd839a1/django-simple-audit-0.1.17.tar.gz" } ], "0.1.18": [ { "comment_text": "", "digests": { "md5": "15859af03e6785ac699bd2f6c7028901", "sha256": "751940ebeb63de98c766eb0f48aceccb02750c771ad0aec781280e60f5159b01" }, "downloads": -1, "filename": "django-simple-audit-0.1.18.tar.gz", "has_sig": false, "md5_digest": "15859af03e6785ac699bd2f6c7028901", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14039, "upload_time": "2014-10-13T00:29:51", "url": "https://files.pythonhosted.org/packages/68/5b/ec611c698f5ca185e75059df3aeeba607069e88928c5adf6fa594e6e74af/django-simple-audit-0.1.18.tar.gz" } ], "0.1.19": [ { "comment_text": "", "digests": { "md5": "e89818207abaaddda08b4bb7f8dc08d1", "sha256": "d8dcd79bec6923bcd54fa091478ad5eb60fe403d4a131a84d21011e5eff200c5" }, "downloads": -1, "filename": "django-simple-audit-0.1.19.tar.gz", "has_sig": false, "md5_digest": "e89818207abaaddda08b4bb7f8dc08d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14255, "upload_time": "2014-10-20T18:05:53", "url": "https://files.pythonhosted.org/packages/f3/88/8b01d74d8c0505315e715d8eec5b86519a064d9f71f06c7adba91a1b4d68/django-simple-audit-0.1.19.tar.gz" } ], "0.1.20": [], "0.1.21": [ { "comment_text": "", "digests": { "md5": "b31324cd450d0c04052236f1ad4cac8a", "sha256": "9511eb9e536264860f2caf68b87d0e506620da170f6111b9174711a9d7773cb3" }, "downloads": -1, "filename": "django-simple-audit-0.1.21.tar.gz", "has_sig": false, "md5_digest": "b31324cd450d0c04052236f1ad4cac8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15935, "upload_time": "2015-03-03T17:49:20", "url": "https://files.pythonhosted.org/packages/68/68/8d667fc6037a72d9d82d6ba2ae8b2f3a12d38f475380e60cca31fed85941/django-simple-audit-0.1.21.tar.gz" } ], "0.1.22": [ { "comment_text": "", "digests": { "md5": "65a0725bfac3a8decc21b2d864d77eca", "sha256": "d002a3983e8bf905b7c8a4329b40e5c56673b3c01c1e910bceff869447734259" }, "downloads": -1, "filename": "django-simple-audit-0.1.22.tar.gz", "has_sig": false, "md5_digest": "65a0725bfac3a8decc21b2d864d77eca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14345, "upload_time": "2017-02-20T14:11:08", "url": "https://files.pythonhosted.org/packages/d5/b5/ce6973ef48091f8c12e32a4c9f21da0ff0b74f210eb5d21530a6cde69073/django-simple-audit-0.1.22.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "65a0725bfac3a8decc21b2d864d77eca", "sha256": "d002a3983e8bf905b7c8a4329b40e5c56673b3c01c1e910bceff869447734259" }, "downloads": -1, "filename": "django-simple-audit-0.1.22.tar.gz", "has_sig": false, "md5_digest": "65a0725bfac3a8decc21b2d864d77eca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14345, "upload_time": "2017-02-20T14:11:08", "url": "https://files.pythonhosted.org/packages/d5/b5/ce6973ef48091f8c12e32a4c9f21da0ff0b74f210eb5d21530a6cde69073/django-simple-audit-0.1.22.tar.gz" } ] }