Fixed #13170: Make get_level and set_level importable from django.contrib.messages,
as documented. Thanks dm, SmileyChris, tobias. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12826 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
3f4fef432b
commit
8661cb9bd3
|
@ -4,6 +4,7 @@ from django.utils.functional import lazy, memoize
|
|||
|
||||
__all__ = (
|
||||
'add_message', 'get_messages',
|
||||
'get_level', 'set_level',
|
||||
'debug', 'info', 'success', 'warning', 'error',
|
||||
)
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@ from django import http
|
|||
from django.test import TestCase
|
||||
from django.conf import settings
|
||||
from django.utils.translation import ugettext_lazy
|
||||
from django.contrib.messages import constants, utils
|
||||
from django.contrib.messages.api import MessageFailure, get_level, set_level
|
||||
from django.contrib.messages import constants, utils, get_level, set_level
|
||||
from django.contrib.messages.api import MessageFailure
|
||||
from django.contrib.messages.storage import default_storage, base
|
||||
from django.contrib.messages.storage.base import Message
|
||||
from django.core.urlresolvers import reverse
|
||||
|
|
Loading…
Reference in New Issue