Fix for issue when attaching AuditLog to custom auth model