From 268b4249a02cab2a7936ce0a16eb6a8abea7afe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=89=8D=E6=98=8E?= <909355014@qq.com> Date: Tue, 28 Jun 2022 13:27:01 +0800 Subject: [PATCH] =?UTF-8?q?rpj=20file=20=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/rpm/views.py | 1 + server/urls.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/rpm/views.py b/apps/rpm/views.py index eb5cf94d..4d0f1f1c 100644 --- a/apps/rpm/views.py +++ b/apps/rpm/views.py @@ -173,6 +173,7 @@ class RpjfileViewSet(UpdateModelMixin, DestroyModelMixin, ListModelMixin, Custom select_related_fields = ['rpj'] prefetch_related_fields = ['files'] filterset_fields = ['rpj'] + ordering = ['file_cate__sort'] def update(self, request, *args, **kwargs): obj = self.get_object() diff --git a/server/urls.py b/server/urls.py index fb998dc1..04d3ccee 100755 --- a/server/urls.py +++ b/server/urls.py @@ -61,7 +61,6 @@ urlpatterns = [ path('api/docs/', include_docs_urls(title="接口文档", authentication_classes=[], permission_classes=[])), path('api/swagger/', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'), path('api/redoc/', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'), - path('data/map/0000/mapConfig.conf', map_config), # 前端页面入口 path('', TemplateView.as_view(template_name="index.html")), ] + \