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()]
        # Ensure top, default option is ''
        try:
            function_names.remove('')
        except __HOLE__:
            pass
        function_names = [''] + function_names
        return function_names
dataset/ETHPy150Open django-silk/silk/silk/views/profiling.py/ProfilingView._get_distinct_values