perf: 修改支持 Django4

This commit is contained in:
ibuler
2023-07-24 11:52:25 +08:00
parent 16660575b7
commit b4b9c805ff
243 changed files with 546 additions and 614 deletions

View File

@@ -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,