Opened 3 years ago

Closed 3 years ago

#21669 closed Uncategorized (fixed)

docs issue about MultiValueWidget

Reported by: alex_koval Owned by: nobody
Component: Documentation Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

On this page:

https://docs.djangoproject.com/en/dev/ref/forms/fields/#multivaluefield

it took me quite some time to realize that 'self' argument is included by mistake and should be removed from
init arguments for code to be correct:

super(PhoneField, self).__init__(
            self, error_messages=error_messages, fields=fields,
            require_all_fields=False, *args, **kwargs)

Should be:

super(PhoneField, self).__init__(
            error_messages=error_messages, fields=fields,
            require_all_fields=False, *args, **kwargs)

Change History (2)

comment:1 Changed 3 years ago by Baptiste Mispelon

Easy pickings: set
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted
Version: 1.6master

Indeed, this should be removed.

comment:2 Changed 3 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: newclosed

In 5d826586578d09d183b8bd0b64571b7cfebe888b:

Fixed #21669 -- Typo in docs/ref/forms/fields.txt.

Thanks alex_koval for the report.

Note: See TracTickets for help on using tickets.
Back to Top