Posts

Showing posts from November, 2009

django: programmatically adding actions to history

See also http://stackoverflow.com/questions/987669/tying-in-to-django-admins-model-history E.g. in save method of a Src model: from django.contrib.admin.models import LogEntry, ADDITION from django.contrib.contenttypes.models import ContentType LogEntry.objects.log_action( user_id = self.user.pk, content_type_id = ContentType.objects.get_for_model(Src).pk, object_id = self.pk, object_repr = force_unicode(self), action_flag = ADDITION, change_message = "New Src created." )

MOTM - beck, wilco and others

Record Club: Skip Spence "Little Hands" from Beck Hansen on Vimeo .

music of the month - the low anthem