1
0
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:
Anv3sh
2022-06-16 21:34:13 +05:30
committed by Mariusz Felisiak
parent 901a169198
commit d7f5bfd241
7 changed files with 51 additions and 9 deletions

View File

@@ -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"