Ajoutez des fichiers projet.
This commit is contained in:
12
venv/Lib/site-packages/django/contrib/messages/utils.py
Normal file
12
venv/Lib/site-packages/django/contrib/messages/utils.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from django.conf import settings
|
||||
from django.contrib.messages import constants
|
||||
|
||||
|
||||
def get_level_tags():
|
||||
"""
|
||||
Return the message level tags.
|
||||
"""
|
||||
return {
|
||||
**constants.DEFAULT_TAGS,
|
||||
**getattr(settings, 'MESSAGE_TAGS', {}),
|
||||
}
|
Reference in New Issue
Block a user