Skip to content

Commit cd8878d

Browse files
authored
Closes #20774: used gettext_lazy instead gettext (#20782)
1 parent b5a9cb1 commit cd8878d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

netbox/core/object_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.utils.translation import gettext as _
1+
from django.utils.translation import gettext_lazy as _
22

33
from netbox.object_actions import ObjectAction
44

netbox/dcim/object_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.utils.translation import gettext as _
1+
from django.utils.translation import gettext_lazy as _
22

33
from netbox.object_actions import ObjectAction
44

netbox/netbox/object_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from django.template import loader
22
from django.urls.exceptions import NoReverseMatch
3-
from django.utils.translation import gettext as _
3+
from django.utils.translation import gettext_lazy as _
44

55
from core.models import ObjectType
66
from extras.models import ExportTemplate

netbox/virtualization/object_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.utils.translation import gettext as _
1+
from django.utils.translation import gettext_lazy as _
22

33
from netbox.object_actions import ObjectAction
44

0 commit comments

Comments
 (0)