Skip to content

Commit 2f60e22

Browse files
committed
[fix] Fixed translation initialization issue
Seems expressions like f' {_("ms")}' force the evaluation of the translatable string, but the translation system is not ready at this stage of the app startup yet and django throws an error in production.
1 parent ccbb34d commit 2f60e22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openwisp_monitoring/monitoring/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
_('Average Max RTT'),
8787
_('Average Min RTT'),
8888
],
89-
'unit': f' {_("ms")}',
89+
'unit': _(" ms"),
9090
'order': 220,
9191
'query': chart_query['rtt'],
9292
},
@@ -173,7 +173,7 @@
173173
_('Total download traffic'),
174174
_('Total upload traffic'),
175175
],
176-
'unit': f' {_("GB")}',
176+
'unit': _(" GB"),
177177
'order': 240,
178178
'query': chart_query['traffic'],
179179
},

0 commit comments

Comments
 (0)