This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

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']
Release History

Release History

0.1rc2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1rc1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_modify_history-0.1rc2-py2.7.egg (23.0 kB) Copy SHA256 Checksum SHA256 2.7 Egg Jun 11, 2011
django-modify-history-0.1rc2.tar.gz (7.8 kB) Copy SHA256 Checksum SHA256 Source Jun 11, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting