ignore
This commit is contained in:
parent
ea28be2f5f
commit
87ced2556d
|
@ -7,6 +7,7 @@ media/
|
||||||
static/
|
static/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.pyc
|
*.pyc
|
||||||
|
*.sqlite3
|
||||||
|
|
||||||
# client
|
# client
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|
|
@ -120,6 +120,7 @@ class QualificationViewSet(ModelViewSet):
|
||||||
search_fields = ['cma', 'cnas', 'sszx', 'other', 'service']
|
search_fields = ['cma', 'cnas', 'sszx', 'other', 'service']
|
||||||
# ordering_fields = ['sszx']
|
# ordering_fields = ['sszx']
|
||||||
ordering = 'sszx'
|
ordering = 'sszx'
|
||||||
|
filterset_fields = ['sszx']
|
||||||
|
|
||||||
@action(methods=['get'], detail=False,url_name='qualification_group_by', perms_map = {'*':'*'})
|
@action(methods=['get'], detail=False,url_name='qualification_group_by', perms_map = {'*':'*'})
|
||||||
def group(self, request, pk=None):
|
def group(self, request, pk=None):
|
||||||
|
@ -146,6 +147,7 @@ class CNASViewSet(ModelViewSet):
|
||||||
serializer_class = CNASSerializer
|
serializer_class = CNASSerializer
|
||||||
search_fields = ['bzbh', 'bzmc', 'sszx', 'xmmc', 'bztk']
|
search_fields = ['bzbh', 'bzmc', 'sszx', 'xmmc', 'bztk']
|
||||||
ordering_fields = ['bzmc']
|
ordering_fields = ['bzmc']
|
||||||
|
filterset_fields = ['sszx']
|
||||||
ordering = 'bzmc'
|
ordering = 'bzmc'
|
||||||
|
|
||||||
@action(methods=['post'], detail=False, url_path='import', url_name='cnas_import', perms_map = {'post':'cnas_import'})
|
@action(methods=['post'], detail=False, url_path='import', url_name='cnas_import', perms_map = {'post':'cnas_import'})
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue