Browse Source

'新增basic菜单的过滤条件'

DYaiu 4 years ago
parent
commit
3e7802bfd7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      basic/views.py

+ 1 - 0
basic/views.py

@@ -8,3 +8,4 @@ class MenuView(ModelViewSet):
     queryset = Menu.objects.all()
     serializer_class = MenuSerializer
     pagination_class = None
+    filter_fields = {'code': ['exact'], 'parent': ['exact']}