Opened 10 years ago

Closed 10 years ago

#21669 closed Uncategorized (fixed)

docs issue about MultiValueWidget

Reported by: Alex Koval Owned by: nobody
Component: Documentation Version: dev
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 by Baptiste Mispelon, 10 years ago

Easy pickings: set
Triage Stage: UnreviewedAccepted
Version: 1.6master

Indeed, this should be removed.

comment:2 by Tim Graham <timograham@…>, 10 years ago

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