logging parameters: translate log_leve choices (#28319)

This commit is contained in:
Lauréline Guérin 2019-10-07 14:29:30 +02:00
parent 3666118e4a
commit 8bbae6f2c4
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 6 additions and 6 deletions

View File

@ -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'
)