#29131: Make the error message for ArrayField more user and translation-friendly
--------------------------------------+------------------------------------
     Reporter:  Vlada Macek           |                    Owner:  (none)
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  contrib.postgres      |                  Version:  2.0
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  1
--------------------------------------+------------------------------------
Changes (by Tim Graham):

 * type:  Bug => Cleanup/optimization
 * stage:  Unreviewed => Accepted


Comment:

 I think indexing from 1 instead of 0 is an improvement.

 Changing array to list might be okay, but what about all the messages in
 the `ArrayField` model field that use "array".

 About the addition of "(count from the left)"... I think that would be
 better added in translational only for languages (if any?) where counting
 in lists happens from the right?

 I see your point about the trailing space -- the translated messages I
 checked don't have the trailing space. I guess the idea would be to modify
 `contrib.postgres.utils.prefix_validation_error()` to add the space
 instead.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29131#comment:1>
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/064.0e6b67ffc4586babe5643efe46b1f662%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to