Ticket #21317: constants.diff

File constants.diff, 510 bytes (added by Toff, 5 years ago)
  • constants.py

    old new  
     1from django.utils.translation import ugettext_lazy as _
     2
    13DEBUG = 10
    24INFO = 20
    35SUCCESS = 25
     
    57ERROR = 40
    68
    79DEFAULT_TAGS = {
    8     DEBUG: 'debug',
    9     INFO: 'info',
    10     SUCCESS: 'success',
    11     WARNING: 'warning',
    12     ERROR: 'error',
     10    DEBUG: _('debug'),
     11    INFO: _('info'),
     12    SUCCESS: _('success'),
     13    WARNING: _('warning'),
     14    ERROR: _('error'),
    1315}
Back to Top