Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#31514 closed Cleanup/optimization (fixed)

Correct default forms fields in model fields docs.

Reported by: Nat S Dunn Owned by: Hasan Ramezani
Component: Documentation Version: 3.0
Severity: Normal Keywords: URLField
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The documentation at https://docs.djangoproject.com/en/3.0/ref/models/fields/#urlfield reads:

The default form widget for this field is a TextInput.

It should read:

The default form widget for this field is a URLInput as defined in django.forms.fields.URLField.

Change History (5)

comment:1 by Mariusz Felisiak, 5 years ago

Summary: The default form widget for URLField is a URLInput, not a TextInput.Correct default forms fields in model fields docs.
Triage Stage: UnreviewedAccepted
Type: BugCleanup/optimization

Thanks, others are also outdated e.g. TimeField, DateField, or DateTimeField (see ModelForm docs).

Last edited 5 years ago by Mariusz Felisiak (previous) (diff)

comment:2 by Hasan Ramezani, 5 years ago

Owner: changed from nobody to Hasan Ramezani
Status: newassigned

comment:3 by Hasan Ramezani, 5 years ago

Has patch: set

I've fixed it for BigIntegerField as well.

Version 0, edited 5 years ago by Hasan Ramezani (next)

comment:4 by GitHub <noreply@…>, 5 years ago

Resolution: fixed
Status: assignedclosed

In d6db1864:

Fixed #31514 -- Fixed default form widgets in model fields docs.

comment:5 by Mariusz Felisiak <felisiak.mariusz@…>, 5 years ago

In 657992cf:

[3.0.x] Fixed #31514 -- Fixed default form widgets in model fields docs.

Backport of d6db186427d33889e4d2f3b56e02807d51fc0376 from master

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