mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #32969 -- Fixed pickling HttpResponse and subclasses.
This commit is contained in:
@@ -18,6 +18,7 @@ from django.shortcuts import render
|
||||
from django.template import Context, Template
|
||||
from django.test import Client
|
||||
from django.utils.decorators import method_decorator
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
|
||||
def get_view(request):
|
||||
@@ -418,3 +419,7 @@ class TwoArgException(Exception):
|
||||
|
||||
def two_arg_exception(request):
|
||||
raise TwoArgException("one", "two")
|
||||
|
||||
|
||||
class CBView(TemplateView):
|
||||
template_name = "base.html"
|
||||
|
||||
Reference in New Issue
Block a user