def __call__(self, request): _init_flavour(request) if settings.FLAVOURS_GET_PARAMETER in request.GET: flavour = request.GET[settings.FLAVOURS_GET_PARAMETER] if flavour in settings.FLAVOURS: set_flavour(flavour, request, permanent=True) response = self.get_response(request) flavour_storage.save(request, response) return response
def process_response(self, request, response): flavour_storage.save(request, response) return response
def process_response(self, request, response): flavour_storage.save(request, response) return response