{ "info": { "author": "Jaap Roes (Eight Media)", "author_email": "jaap@eight.nl", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "=======================\nDjango Admin Timestamps\n=======================\n\nShow human readable created/modified dates and/or times in the\n``django.contrib.admin`` changelist for models that track the\nmoment of creation and updates.\n\nUsage\n=====\n\nFirst you will need to have a model that tracks the moment of creation and\nmodification. The barebones example for that is::\n\n from django.db import models\n\n class TimestampedItem(models.Model):\n created = models.DateTimeField('created', auto_now_add=True)\n modified = models.DateTimeField('modified', auto_now=True)\n\nOr, if you are using `django-extensions\n`_::\n\n from django_extensions.db.models import TimeStampedModel\n\n class TimestampedItem(TimeStampedModel):\n pass\n\nNow it's time to register this model with Django's admin site.\n\nCreate a admin class, just like you'd usually do, but make it extend\n``TimestampedAdminMixin`` as well as any other base admin class you use::\n\n from django.contrib import admin\n from models import TimestampedItem\n from admintimestamps import TimestampedAdminMixin\n\n class TimestampedAdmin(TimestampedAdminMixin, admin.ModelAdmin):\n pass\n\n admin.site.register(TimestampedItem, TimestampedAdmin)\n\nThat's it!\n\n.. image:: https://bitbucket.org/jaap3/django-admin-timestamps/raw/tip/img/screenshot.png\n\nConfiguration\n=============\n\nIf the names of you timestamp fields aren't ``created`` and ``modified``\nbut for example ``created_at`` and ``modified_at`` you'll need to do a tiny\nbit of configuration in the model admin class::\n\n class TimestampedAdmin(TimestampedAdminMixin, admin.ModelAdmin):\n timestamp_fields = ('created_at', 'modified_at')\n\nYou can also use the timestamp_fields tuple to only show one field by\nonly specifying the field you want to show::\n\n class TimestampedAdmin(TimestampedAdminMixin, admin.ModelAdmin):\n timestamp_fields = ('modified',)\n\nChangelog for django-admin-timestamps\n=====================================\n\n1.2 (2014-09-29)\n----------------\n\n- Dropped support for Python < 2.6\n- Dropped support for Django < 1.4\n- Verified support for up to Django 1.7\n- Added support for Python 3\n\n\n1.1.1 (2013-07-01)\n------------------\n\n- Handle None values properly\n\n\n1.1 (2012-02-21)\n----------------\n\n- Just displaying one timestamp field is now possible.\n- Proper handling of date fields.\n\n\n1.0.1 (2011-10-11)\n------------------\n\n- Fixed setup.py to include the compat subpackage\n\n\n1.0.0 (2011-10-07)\n------------------\n\n- Initial release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/jaap3/django-admin-timestamps/", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-admin-timestamps", "package_url": "https://pypi.org/project/django-admin-timestamps/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-admin-timestamps/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/jaap3/django-admin-timestamps/" }, "release_url": "https://pypi.org/project/django-admin-timestamps/1.2/", "requires_dist": null, "requires_python": null, "summary": "Custom list display of model timestamps for Django Admin.", "version": "1.2" }, "last_serial": 1241586, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "925bac04cccbbcb10205d097d6889dad", "sha256": "e7c864b65953f0603eacf746803651590fc424d165b8054d429982408dc679f9" }, "downloads": -1, "filename": "django-admin-timestamps-1.0.0.tar.gz", "has_sig": false, "md5_digest": "925bac04cccbbcb10205d097d6889dad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14246, "upload_time": "2011-10-07T12:19:45", "url": "https://files.pythonhosted.org/packages/d6/86/e71501f64a8bf4776521d24cd31485ac1dc6ce8dfb66638ee3ef2303f5b0/django-admin-timestamps-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "f7058173f57b902b196e4717b964446a", "sha256": "54e7d94cd2cf379c0430e488f1411cf000251a7f412e7f69c8254c0a40a1c5f2" }, "downloads": -1, "filename": "django-admin-timestamps-1.0.1.tar.gz", "has_sig": false, "md5_digest": "f7058173f57b902b196e4717b964446a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14357, "upload_time": "2011-10-11T10:45:09", "url": "https://files.pythonhosted.org/packages/3a/06/08b1a5605f2340ed0d47d95b3b8500f52716366b356434eaff908ec538fe/django-admin-timestamps-1.0.1.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "fb37472378ecb9a1b60bee9112dde84a", "sha256": "603d14c4bb17763a276c9c1c791f33f6486c89fb991b0cf7e43cd9e1e5316dd1" }, "downloads": -1, "filename": "django-admin-timestamps-1.1.tar.gz", "has_sig": false, "md5_digest": "fb37472378ecb9a1b60bee9112dde84a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32422, "upload_time": "2012-02-21T14:49:37", "url": "https://files.pythonhosted.org/packages/b2/0b/0e097c71c9860c38c99cdfdbecedb97a3ef325013b05fff0cfe7d9398f95/django-admin-timestamps-1.1.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "659b33d4c84c9894b68cf88399627fc6", "sha256": "33e3dc5f039979bba39060eb22ec5439e97adfb0af8d9d3db286aeca3df837ff" }, "downloads": -1, "filename": "django-admin-timestamps-1.1.1.zip", "has_sig": false, "md5_digest": "659b33d4c84c9894b68cf88399627fc6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 41895, "upload_time": "2013-07-01T13:31:24", "url": "https://files.pythonhosted.org/packages/83/15/237d260f263a97c73952e324ef7008837025b95f9408b77303a12560e238/django-admin-timestamps-1.1.1.zip" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "cd5d9fc9850210c51fbedaafd013e713", "sha256": "d34b4679fd70c6d22d325e8695b503fccefa54e690e19a884025e1b5d80ac495" }, "downloads": -1, "filename": "django-admin-timestamps-1.2.zip", "has_sig": false, "md5_digest": "cd5d9fc9850210c51fbedaafd013e713", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16846, "upload_time": "2014-09-29T12:07:15", "url": "https://files.pythonhosted.org/packages/1a/49/a9b6c78262a7497ec96e058bfbf1a5970371ff146b14cbf1ce5f49726aee/django-admin-timestamps-1.2.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cd5d9fc9850210c51fbedaafd013e713", "sha256": "d34b4679fd70c6d22d325e8695b503fccefa54e690e19a884025e1b5d80ac495" }, "downloads": -1, "filename": "django-admin-timestamps-1.2.zip", "has_sig": false, "md5_digest": "cd5d9fc9850210c51fbedaafd013e713", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16846, "upload_time": "2014-09-29T12:07:15", "url": "https://files.pythonhosted.org/packages/1a/49/a9b6c78262a7497ec96e058bfbf1a5970371ff146b14cbf1ce5f49726aee/django-admin-timestamps-1.2.zip" } ] }