def get_queryset(self):
        level_to_get = None
        if 'level' in self.request.GET:
            level_to_get = self.request.GET['level']
        resources = Resource.objects.all()
        if level_to_get:
            resources = resources.filter(level=level_to_get)
        self.headline = 'All Resources'
        return resources
dataset/ETHPy150Open codesters/codesters/resources/views.py/ResourceAllListView.get_queryset/original