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")), ] + \