Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion rest_framework/schemas/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
from importlib import import_module

from django.conf import settings
from django.contrib.admindocs.views import simplify_regex

try:
from django.contrib.admindocs.regex import simplify_regex
except ImportError:
from django.contrib.admindocs.views import simplify_regex

from django.core.exceptions import PermissionDenied
from django.http import Http404
from django.urls import URLPattern, URLResolver
Expand Down
14 changes: 12 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ envlist =
{py38,py39}-{django42}
{py310}-{django42,django50,django51,djangomain}
{py311}-{django42,django50,django51,djangomain}
{py312}-{django42,django50,django51,djangomain}
{py313}-{django51,djangomain}
{py312}-{django42,django50,django51,djangomain,djangofork}
{py313}-{django51,djangomain,djangofork}
base
dist
docs
Expand All @@ -20,6 +20,7 @@ deps =
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
djangomain: https://github.com/django/django/archive/main.tar.gz
djangofork: https://github.com/browniebroke/django/archive/split-admindocs-regexes-utils.tar.gz
-rrequirements/requirements-testing.txt
-rrequirements/requirements-optionals.txt
setuptools
Expand Down Expand Up @@ -52,3 +53,12 @@ ignore_outcome = true

[testenv:py312-djangomain]
ignore_outcome = true

[testenv:py313-djangomain]
ignore_outcome = true

[testenv:py312-djangofork]
ignore_outcome = true

[testenv:py313-djangofork]
ignore_outcome = true
Loading