mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-18 16:39:28 +00:00
perf: 修改支持 Django4
This commit is contained in:
@@ -6,9 +6,9 @@ from datetime import datetime
|
||||
from django.conf import settings
|
||||
from django.db import models
|
||||
from django.utils import timezone as dj_timezone
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
lazy_type = type(_('ugettext_lazy'))
|
||||
lazy_type = type(_('gettext_lazy'))
|
||||
|
||||
|
||||
class ModelJSONFieldEncoder(json.JSONEncoder):
|
||||
|
Reference in New Issue
Block a user