Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install django-modify-history

How to install django-modify-history

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install django-modify-history
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1rc2 Available View build log
Windows (64-bit)
0.1rc2 Available View build log
Mac OS X (10.5+)
0.1rc2 Available View build log
Linux (32-bit)
0.1rc2 Available View build log
Linux (64-bit)
0.1rc2 Available View build log
 
Author
License
BSD
Dependencies
Lastest release
version 0.1rc2 on Nov 3rd, 2011

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

Install

sudo pip install django-modify-history

or:

sudo pip install git+git://github.com/lambdalisue/django-modify-history.git#egg=django-modify-history

How to Use

  1. Append modify_history to INSTALLED_APPS

  2. run manage.py syncdb

  3. Add history_site.py 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):
            pass
    site.register(Article, ArticleBackend)
    
  4. Use get_history_timelines template tags for get history list like below:

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

Settings

HISTORY_ENABLE
Make history enable, to disable history app just set this False
HISTORY_USER_ATTRS
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']

Subscribe to package updates

Last updated Nov 3rd, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.