class YourView(SomeView):

    def dispatch(self, request, *args, **kwargs):
        self.foo = request.GET.get('foo', False)
return super(YourView, self).dispatch(request, *args, **kwargs)
Is it okay to set instance variables in a Django class based view?