Opened 10 years ago
Last modified 10 years ago
#23698 closed Uncategorized
Misleading Form.errors section in docs — at Version 1
Reported by: | Kamil Bar | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.6 |
Severity: | Normal | Keywords: | docs wrong form errors utils django |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Hey,
I want to report that this doc section is wrong comparing to 1.6 code itself,
https://docs.djangoproject.com/en/1.6/ref/forms/api/#django.forms.Form.errors
You're stating that using form.error gives dict back, but it's not true, in django.forms.util.ErrorDict there is:
def __str__(self): return self.as_ul()
So it's actually returning HTML ul formatted string instead of dict stated in docs.
Note:
See TracTickets
for help on using tickets.