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