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

Enable in any Model class an change history of all inserts, updates and deletes

Project description


Enable in any Model class an change history of all inserts, updates and deletes


In your




Option 1: In your

You only must to update the parent class of your model.

from django.db import models

class MyModel(models.Model):
from model_history.models import ModelHistoryProvider

class MyModel(ModelHistoryProvider):


Option 1 example.

Option 2: In your

Or you can call directly to the create_history_model_class function

from django.db import models

from model_history.models import create_history_model_class, BaseModelHistory

class MyModel(models.Model):

MyModelHistory = create_history_model_class(MyModel, (BaseModelHistory,))

Option 2 example.


You can get the last bleeding edge version of django-model-history by doing a clone of its git repository

git clone

Example project

In the source tree, you will find a directory called example. It contains a readily setup project that uses django-model-history. You can run it as usual:

python makemigrations
python syncdb --noinput
python runserver

Access in a browser to http://localhost:8000/

0.1.2 (2015-04-24)

  • Fix typo errors

0.1.1 (2015-04-24)

  • Fix typo errors

0.1.0 (2015-04-24)

  • Initial version

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-model-history, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size django-model-history-0.1.2.tar.gz (4.9 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