def _get_details_for_slug(serializer, field_name, field):
    """
    For slug field, we ideally want to get Model.field format. However, in some
    cases getting the model name is not possible, and only field name is
    displayed.
    """
    model = ''
    if hasattr(field, 'queryset') and field.queryset:
        model = field.queryset.model.__name__ + '.'
    return '%s%s' % (model, field.slug_field)