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