Skip to content

Commit 5ea9805

Browse files
committed
style fix
1 parent 2b57689 commit 5ea9805

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/inventree_rapidoc/RapidocPlugin.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from plugin.mixins import UrlsMixin, AppMixin
55

66
from django.urls import re_path
7-
from django.utils.translation import gettext_lazy as _
87
from drf_spectacular.plumbing import get_relative_url, set_query_parameters
98
from drf_spectacular.settings import spectacular_settings
109
from drf_spectacular.utils import extend_schema
@@ -14,7 +13,6 @@
1413
from rest_framework.views import APIView
1514

1615

17-
1816
class ApiDocView(APIView):
1917
"""View to render the API schema with RapiDoc."""
2018

@@ -35,6 +33,7 @@ def get(self, request, *args, **kwargs):
3533
template_name="rapidoc.html",
3634
)
3735

36+
3837
class RapidocPlugin(UrlsMixin, AppMixin, InvenTreePlugin):
3938
"""Use RapiDoc for Inventree API docs."""
4039

@@ -45,4 +44,4 @@ class RapidocPlugin(UrlsMixin, AppMixin, InvenTreePlugin):
4544
def setup_urls(self):
4645
return [
4746
re_path(r"^doc/", ApiDocView.as_view(url_name="schema"), name="rapidoc",),
48-
]
47+
]

0 commit comments

Comments
 (0)