/
vshmidt
/
django
Обзор
Документация
Войти
/
vshmidt
/
django
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/admin_docs/views.py
29 строк
635 B
sai-ganesh-03
Fixed #35867, Refs #2411 -- Allowed links in admindocs view details summary.
04 ноя 2024, 12:43
04 ноя 2024, 12:43
9683972
Код
Авторство
О чём код?
from django.contrib.admindocs.middleware import XViewMiddleware from django.http import HttpResponse from django.utils.decorators import decorator_from_middleware from django.views.generic import View xview_dec = decorator_from_middleware(XViewMiddleware) def xview(request): return HttpResponse() class XViewClass(View): def get(self, request): return HttpResponse() class XViewCallableObject(View): def __call__(self, request): return HttpResponse() class CompanyView(View): """ This is a view for :model:`myapp.Company` """ def get(self, request): return HttpResponse()