mirror of https://github.com/jumpserver/jumpserver
feat: 调整站内信接口 (#6228)
* feat: 调整站内信接口 * 添加 websockt * 添加信息类型字段 * 添加 has_read 过滤参数 * feat: 调整站内信接口 * 添加 websockt * 添加信息类型字段 * 添加 has_read 过滤参数 * 去掉type websocket * perf: 去掉type Co-authored-by: xinwen <coderWen@126.com> Co-authored-by: ibuler <ibuler@qq.com>pull/6247/head^2
parent
391a5cb7d0
commit
af92271a52
@ -0,0 +1,11 @@
|
||||
import django_filters
|
||||
|
||||
from .models import SiteMessage
|
||||
|
||||
|
||||
class SiteMsgFilter(django_filters.FilterSet):
|
||||
has_read = django_filters.BooleanFilter(field_name='m2m_sitemessageusers__has_read')
|
||||
|
||||
class Meta:
|
||||
model = SiteMessage
|
||||
fields = ('has_read',)
|
Loading…
Reference in new issue