

def _get_distinct_values(self, field, silk_request):
    if silk_request:
        query_set = Profile.objects.filter(request=silk_request)
    else:
        query_set = Profile.objects.all()
    function_names = [x[field] for x in query_set.values(field).distinct()]
    try:
        function_names.remove('')
    except ValueError:
        pass
    function_names = ([''] + function_names)
    return function_names

dataset/ETHPy150Open django-silk/silk/silk/views/profiling.py ProfilingView._get_distinct_values/original