Skip to content

Commit

Permalink
[fix] Fixed translation initialization issue
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nemesifier committed Aug 18, 2020
1 parent ccbb34d commit 2f60e22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openwisp_monitoring/monitoring/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
_('Average Max RTT'),
_('Average Min RTT'),
],
'unit': f' {_("ms")}',
'unit': _(" ms"),
'order': 220,
'query': chart_query['rtt'],
},
Expand Down Expand Up @@ -173,7 +173,7 @@
_('Total download traffic'),
_('Total upload traffic'),
],
'unit': f' {_("GB")}',
'unit': _(" GB"),
'order': 240,
'query': chart_query['traffic'],
},
Expand Down

0 comments on commit 2f60e22

Please sign in to comment.