#9514: Two admin templates incorrectly use errors.items ----------------------------------+----------------------------------------- Reporter: kmtracey | Owner: nobody Status: new | Milestone: Component: django.contrib.admin | Version: 1.0 Keywords: | Stage: Unreviewed Has_patch: 0 | ----------------------------------+----------------------------------------- This thread:
http://groups.google.com/group/django- users/browse_thread/thread/5dc2d51f331dd500 points out that the admin change_form.html uses `errors.items|length`, which is incorrect. errors is a list type; `errors|length` would seem to be what should be used. As is is now the plural message is always displayed even when there is only a single error on the page. grep shows admin/auth/user/change_password.html uses the same construct and probably also needs to be fixed. -- Ticket URL: <http://code.djangoproject.com/ticket/9514> Django <http://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 this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
