from django.contrib.admin.models import LogEntry, ADDITION, CHANGE, DELETE
from django.contrib.contenttypes.models import ContentType
LogEntry.objects.log_action(
user_id=request.user.id,
content_type_id=ContentType.objects.get_for_model(some_model).pk,
object_id=object.id,
object_repr=str(object),
action_flag=ADDITION)