mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Fixes #16051: Wrap empty_text with gettext_lazy()
This commit is contained in:
parent
dcb24b6ee7
commit
95a3907e50
@ -52,7 +52,7 @@ class BaseTable(tables.Table):
|
|||||||
|
|
||||||
# Set default empty_text if none was provided
|
# Set default empty_text if none was provided
|
||||||
if self.empty_text is None:
|
if self.empty_text is None:
|
||||||
self.empty_text = f"No {self._meta.model._meta.verbose_name_plural} found"
|
self.empty_text = _("No {model_name} found").format(model_name=self._meta.model._meta.verbose_name_plural)
|
||||||
|
|
||||||
# Determine the table columns to display by checking the following:
|
# Determine the table columns to display by checking the following:
|
||||||
# 1. User's configuration for the table
|
# 1. User's configuration for the table
|
||||||
|
Loading…
Reference in New Issue
Block a user