#16373: Django admin templates trigger a DeprecationWarning
----------------------------------+-------------------------------
 Reporter:  slinkp                |          Owner:  nobody
     Type:  Cleanup/optimization  |         Status:  new
Milestone:                        |      Component:  contrib.admin
  Version:  1.3                   |       Severity:  Normal
 Keywords:                        |   Triage Stage:  Unreviewed
Has patch:  0                     |  Easy pickings:  0
    UI/UX:  0                     |
----------------------------------+-------------------------------
 During test runs of my app with Django 1.3 installed, I get this:

 "DeprecationWarning: The user messaging API is deprecated. Please update
 your code to use the new messages framework."

 I've traced this to a page which uses a template which extends
 admin/base.html.
 I'm guessing it comes from these lines:

 {{{
         {% if messages %}
         <ul class="messagelist">{% for message in messages %}
           <li{% if message.tags %} class="{{ message.tags }}"{% endif
 %}>{{ message }}</li>

 }}}

 It's mildly annoying that I get the warning even though AFAICT my code
 doesn't use that API at all - the warning sent me on a wild goose chase.

 I'm assuming we can't just remove or update that part of base.html without
 breaking third-party code that still uses the deprecated API. Is there any
 way we could trigger the warning only when you actually *use* the
 deprecated API?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16373>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to