#21412: Django message framework called with None
----------------------------------+------------------------------------
     Reporter:  merb              |                    Owner:  nobody
         Type:  Bug               |                   Status:  new
    Component:  contrib.messages  |                  Version:  1.6
     Severity:  Normal            |               Resolution:
     Keywords:  messages          |             Triage Stage:  Accepted
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  1                 |                    UI/UX:  0
----------------------------------+------------------------------------

Comment (by merb):

 Thats correct, normally it would raise {{{NameError}}}, but it didn't
 raised the {{{NameError}}} so it always raised that the middleware was not
 installed.
 I was very sleepy thats why i found out, that something is really wrong.

 I would make assertion checks on
 {{{
 messages.add_message
 messages.debug
 messages.info
 messages.success
 messages.warning
 messages.error
 }}}

 but that would raise another problem, what happens if somebody makes a
 custom Request that inerhits from the actual request object, would this
 work with a assertion check, too?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21412#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.2e4ab4469d61a48919b8a69ecdf96927%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to