#21113: django_admin_log table stores messages in different languages depending 
on
which language was active while editing.
---------------------------------+------------------------------------
     Reporter:  dimyur27@…       |                    Owner:
         Type:  New feature      |                   Status:  new
    Component:  contrib.admin    |                  Version:  master
     Severity:  Normal           |               Resolution:
     Keywords:  admin logs i18n  |             Triage Stage:  Accepted
    Has patch:  1                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+------------------------------------

Comment (by chmarr):

 I know this is very late to the party, and it's not that critical of an
 issue, but generally it is considered good form [citation-needed] to
 ensure the top level of a JSON structure is an object/dictionary, rather
 than a list, string, int, etc. `django.http.response.JsonResponse` for
 example considers anything except a dict to be 'unsafe'.

 The change is simple... just use `{'changes':[ ...]}` rather than simply
 `[...]`, but this does involve changing the entire patch. 😦

--
Ticket URL: <https://code.djangoproject.com/ticket/21113#comment:15>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/076.6c8cd2818363eea0a89179218eef95b9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to