#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 , 12 months ago
| Easy pickings: | unset |
|---|---|
| Resolution: | → worksforme |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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.