mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #13132: Wrap verbose_name and other model text with gettext_lazy() (i18n)
--------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.db import models
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from extras.dashboard.utils import get_widget_class
|
||||
|
||||
@ -15,9 +16,11 @@ class Dashboard(models.Model):
|
||||
related_name='dashboard'
|
||||
)
|
||||
layout = models.JSONField(
|
||||
verbose_name=_('layout'),
|
||||
default=list
|
||||
)
|
||||
config = models.JSONField(
|
||||
verbose_name=_('config'),
|
||||
default=dict
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user