Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Automatically create history database when perticular model is saved.

Project description

django-modify-history is a library to create object modification timeline using Django signal


sudo pip install django-modify-history


sudo pip install git+git://

How to Use

  1. Append modify_history to INSTALLED_APPS

  2. run syncdb

  3. Add to the app and write like below:

    from modify_history import site
    from modify_history.backends.basic import BasicHistoryBackend
    from models import Article
    class ArticleBackend(BasicHistoryBackend):
    site.register(Article, ArticleBackend)
  4. Use get_history_timelines template tags for get history list like below:

    {% extends 'base.html' %}
    {% load historytags %}
    {% block content %}
            {% get_history_timelines as timelines %}
            {% for timeline in timelines %}
            <li>{{ timeline.get_message }} at {{ timeline.created_at|date }}</li>
            {% endfor %}
    {% endblock %}


Make history enable, to disable history app just set this False
modify_history app find user from target object’s attrs. this is the list of name of attrs. default is ['updated_by', 'user', 'author', 'created_by']

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-modify-history, version 0.1rc2
Filename, size File type Python version Upload date Hashes
Filename, size django_modify_history-0.1rc2-py2.7.egg (23.0 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size django-modify-history-0.1rc2.tar.gz (7.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page