Skip to content

Instantly share code, notes, and snippets.

View ahmontero's full-sized avatar

ahmontero ahmontero

View GitHub Profile
@ahmontero
ahmontero / actions.py
Created June 14, 2012 08:09
Trace the changes made to a django model. You can see how to use it in example.py
# -*- encoding: utf-8 -*-
# --------------------------
# Ripped from django project
# --------------------------
from django.contrib.contenttypes.models import ContentType
from django.utils.translation import ugettext as _
from django.utils.encoding import force_unicode