Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #13170: Make get_level and set_level importable from django.con…

…trib.messages,

as documented. Thanks dm, SmileyChris, tobias.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@12826 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8661cb9bd38c29af35d785c98d0008323a1734b1 1 parent 3f4fef4
Karen Tracey kmtracey authored
1  django/contrib/messages/api.py
View
@@ -4,6 +4,7 @@
__all__ = (
'add_message', 'get_messages',
+ 'get_level', 'set_level',
'debug', 'info', 'success', 'warning', 'error',
)
4 django/contrib/messages/tests/base.py
View
@@ -2,8 +2,8 @@
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
Please sign in to comment.
Something went wrong with that request. Please try again.