def _trac_data_tags(instance, trac_type, state):
    """
    Returns data types for specific type and an object.
    """
    data_str = ''
    if instance:
        data = {'state': state, 'type': trac_type, 'app': instance._meta.
            app_label, 'klass': instance.__class__.__name__, 'pk': instance.id}
        data_str = (
            'trac-state=%(state)s trac-type=%(type)s trac-app=%(app)s trac-class=%(klass)s trac-oid=%(pk)s'
             % data)
    return data_str
