Opened 10 years ago
Closed 10 years ago
#23698 closed Uncategorized (invalid)
Misleading Form.errors section in docs
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.
Change History (2)
comment:1 by , 10 years ago
Description: | modified (diff) |
---|
comment:2 by , 10 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.