#19361: Link to object in message after creating/updating object in django admin
-------------------------------------+-------------------------------------
     Reporter:  anonymous            |                    Owner:  bak1an
         Type:  New feature          |                   Status:  assigned
    Component:  contrib.admin        |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  admin, messages,     |             Triage Stage:  Accepted
  update_object, create_object       |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by bak1an):

 some status update:
 * a branch with quick implementation (not finished yet)
 [https://github.com/bak1an/django/compare/admin-messages admin-messages]
 * this is kind of depends on #19387. when (if) it will be merged into
 master we will be able to remove next hunk from diff (i don't like this
 {{{safe}}} filter there):
 {{{
 --- a/django/contrib/admin/templates/admin/base.html
 +++ b/django/contrib/admin/templates/admin/base.html
 @@ -53,7 +53,7 @@
      {% block messages %}
          {% if messages %}
          <ul class="messagelist">{% for message in messages %}
 -          <li{% if message.tags %} class="{{ message.tags }}"{% endif
 %}>{{ message }}</li>
 +          <li{% if message.tags %} class="{{ message.tags }}"{% endif
 %}>{{ message|safe }}</li>
          {% endfor %}</ul>
          {% endif %}
      {% endblock messages %}
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19361#comment:4>
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to