#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 , 4 hours ago
Easy pickings: | unset |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
Version 0, edited 4 hours ago by (next)
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 tuple.