mirror of
https://github.com/django/django.git
synced 2025-08-02 10:02:41 +00:00
Fixed #20126 -- XViewMiddleware moved to django.contrib.admindocs.middleware
This commit is contained in:
parent
a7e2835276
commit
660762681c
12 changed files with 124 additions and 41 deletions
13
tests/admin_docs/views.py
Normal file
13
tests/admin_docs/views.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
from django.http import HttpResponse
|
||||
from django.utils.decorators import decorator_from_middleware
|
||||
from django.views.generic import View
|
||||
from django.contrib.admindocs.middleware import XViewMiddleware
|
||||
|
||||
xview_dec = decorator_from_middleware(XViewMiddleware)
|
||||
|
||||
def xview(request):
|
||||
return HttpResponse()
|
||||
|
||||
class XViewClass(View):
|
||||
def get(self, request):
|
||||
return HttpResponse()
|
Loading…
Add table
Add a link
Reference in a new issue