rpj file 排序
This commit is contained in:
parent
91218602e2
commit
268b4249a0
|
@ -173,6 +173,7 @@ class RpjfileViewSet(UpdateModelMixin, DestroyModelMixin, ListModelMixin, Custom
|
||||||
select_related_fields = ['rpj']
|
select_related_fields = ['rpj']
|
||||||
prefetch_related_fields = ['files']
|
prefetch_related_fields = ['files']
|
||||||
filterset_fields = ['rpj']
|
filterset_fields = ['rpj']
|
||||||
|
ordering = ['file_cate__sort']
|
||||||
|
|
||||||
def update(self, request, *args, **kwargs):
|
def update(self, request, *args, **kwargs):
|
||||||
obj = self.get_object()
|
obj = self.get_object()
|
||||||
|
|
|
@ -61,7 +61,6 @@ urlpatterns = [
|
||||||
path('api/docs/', include_docs_urls(title="接口文档", authentication_classes=[], permission_classes=[])),
|
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/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('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")),
|
path('', TemplateView.as_view(template_name="index.html")),
|
||||||
] + \
|
] + \
|
||||||
|
|
Loading…
Reference in New Issue