mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-13 05:49:07 +00:00
perf: 修改支持 Django4
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from rest_framework import serializers
|
||||
|
||||
__all__ = ['CleaningSerializer']
|
||||
@@ -29,7 +29,8 @@ class CleaningSerializer(serializers.Serializer):
|
||||
)
|
||||
TERMINAL_SESSION_KEEP_DURATION = serializers.IntegerField(
|
||||
min_value=1, max_value=99999, required=True, label=_('Session keep duration (day)'),
|
||||
help_text=_('Session, record, command will be delete if more than duration, only in database, OSS will not be affected.')
|
||||
help_text=_(
|
||||
'Session, record, command will be delete if more than duration, only in database, OSS will not be affected.')
|
||||
)
|
||||
ACTIVITY_LOG_KEEP_DAYS = serializers.IntegerField(
|
||||
min_value=1, max_value=9999,
|
||||
|
Reference in New Issue
Block a user