Opened 3 hours ago

Closed 2 hours ago

Last modified 2 hours ago

#35933 closed Bug (worksforme)

DOCS: Example fails type check

Reported by: Matt George Owned by:
Component: Documentation Version: 5.1
Severity: Normal Keywords:
Cc: Matt George Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

https://docs.djangoproject.com/en/5.1/topics/db/models/#field-options

the SHIRT_SIZES dict within the Person class should be a list of tuples as shown immediately above it

Change History (1)

comment:1 by Jacob Walls, 2 hours ago

Easy pickings: unset
Resolution: worksforme
Status: newclosed

Just above it's explained that choices can be also a mapping or an enumeration type, and then the examples below rotate through those possibilities to reinforce the variety. So I don't think it's desirable to always show it as a list of tuples.

Last edited 2 hours ago by Jacob Walls (previous) (diff)
Note: See TracTickets for help on using tickets.
Back to Top