[Django] #35933: DOCS: Example fails type check

24 views
Skip to first unread message

Django

unread,
Nov 23, 2024, 12:02:08 PM11/23/24
to django-...@googlegroups.com
#35933: DOCS: Example fails type check
-----------------------------+-----------------------------------------
Reporter: Matt George | Type: Bug
Status: new | Component: Documentation
Version: 5.1 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-----------------------------+-----------------------------------------
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
--
Ticket URL: <https://code.djangoproject.com/ticket/35933>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Nov 23, 2024, 12:41:06 PM11/23/24
to django-...@googlegroups.com
#35933: DOCS: Example fails type check
-------------------------------+--------------------------------------
Reporter: Matt George | Owner: (none)
Type: Bug | Status: closed
Component: Documentation | Version: 5.1
Severity: Normal | Resolution: worksforme
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Jacob Walls):

* easy: 1 => 0
* resolution: => worksforme
* status: new => closed

Comment:

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.
--
Ticket URL: <https://code.djangoproject.com/ticket/35933#comment:1>
Reply all
Reply to author
Forward
0 new messages