You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

12 lines
285 B

  1. from django.conf import settings
  2. from django.contrib.messages import constants
  3. def get_level_tags():
  4. """
  5. Returns the message level tags.
  6. """
  7. level_tags = constants.DEFAULT_TAGS.copy()
  8. level_tags.update(getattr(settings, 'MESSAGE_TAGS', {}))
  9. return level_tags