# coding=utf-8 from apps.log.models import BizLog def admin_log(user, type, description, data=None): BizLog.objects.addnew(None, user, type, description, data)