logging parameters: translate log_leve choices (#28319)
This commit is contained in:
parent
3666118e4a
commit
8bbae6f2c4
|
@ -576,14 +576,14 @@ class LoggingParameters(models.Model):
|
|||
resource_pk = models.PositiveIntegerField()
|
||||
resource = fields.GenericForeignKey('resource_type', 'resource_pk')
|
||||
log_level = models.CharField(
|
||||
verbose_name=_('Log Level'),
|
||||
verbose_name=_('Log level'),
|
||||
max_length=10,
|
||||
choices = (
|
||||
('DEBUG', 'DEBUG'),
|
||||
('INFO', 'INFO'),
|
||||
('WARNING', 'WARNING'),
|
||||
('ERROR', 'ERROR'),
|
||||
('CRITICAL', 'CRITICAL'),
|
||||
('DEBUG', _('Debug')),
|
||||
('INFO', _('Info')),
|
||||
('WARNING', _('Warning')),
|
||||
('ERROR', _('Error')),
|
||||
('CRITICAL', _('Critical')),
|
||||
),
|
||||
default='INFO'
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue