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