Opened 8 years ago

Closed 8 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 Kamil Bar)


I want to report that this doc section is wrong comparing to 1.6 code itself,

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 Changed 8 years ago by Kamil Bar

Description: modified (diff)

comment:2 Changed 8 years ago by Kamil Bar

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top