Ticket #13170: ticket_13170.diff

File ticket_13170.diff, 1.0 KB (added by Tobias McNulty, 15 years ago)

patch that adds get_level & set_level to all

  • django/contrib/messages/api.py

    diff --git a/django/contrib/messages/api.py b/django/contrib/messages/api.py
    a b  
    44
    55__all__ = (
    66    'add_message', 'get_messages',
     7    'get_level', 'set_level',
    78    'debug', 'info', 'success', 'warning', 'error',
    89)
    910
  • django/contrib/messages/tests/base.py

    diff --git a/django/contrib/messages/tests/base.py b/django/contrib/messages/tests/base.py
    a b  
    22from django.test import TestCase
    33from django.conf import settings
    44from django.utils.translation import ugettext_lazy
    5 from django.contrib.messages import constants, utils
    6 from django.contrib.messages.api import MessageFailure, get_level, set_level
     5from django.contrib.messages import constants, utils, get_level, set_level
     6from django.contrib.messages.api import MessageFailure
    77from django.contrib.messages.storage import default_storage, base
    88from django.contrib.messages.storage.base import Message
    99from django.core.urlresolvers import reverse
Back to Top