mirror of https://github.com/jumpserver/jumpserver
xinwen
3 years ago
committed by
Jiangjie.Bai
4 changed files with 17 additions and 18 deletions
@ -1,12 +0,0 @@
|
||||
from django_filters import rest_framework as filters |
||||
|
||||
from .models import Application |
||||
from applications import const |
||||
|
||||
|
||||
class ApplicationFilter(filters.FilterSet): |
||||
type = filters.MultipleChoiceFilter(choices=const.ApplicationTypeChoices.choices) |
||||
|
||||
class Meta: |
||||
model = Application |
||||
fields = ['id', 'name', 'category', 'type', 'comment'] |
Loading…
Reference in new issue