Development of an internal social media platform with personalised dashboards for students
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.

utils.py 256B

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