[Django] #36026: Add what .setup()` does to a view to the documentation

5 views
Skip to first unread message

Django

unread,
Dec 18, 2024, 10:07:02 AM12/18/24
to django-...@googlegroups.com
#36026: Add what .setup()` does to a view to the documentation
-------------------------------------+-------------------------------------
Reporter: Willem Van Onsem | Type:
| Cleanup/optimization
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: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
A [https://stackoverflow.com/q/79291523/67579 question at StackOverflow]
asks where it is documented that `self.kwargs` is set, and although it is
mentioned for example in the [https://docs.djangoproject.com/en/5.1/topics
/class-based-views/generic-display/#dynamic-filtering "Built-in class-
based generic views"] section, it does not appear in the documentation of
the [https://docs.djangoproject.com/en/5.1/ref/class-based-
views/base/#django.views.generic.base.View.setup Base views] nor in the
documentation for the `.setup(..)` method.

Perhaps the documentation regarding base views should explain what setup
is doing?
--
Ticket URL: <https://code.djangoproject.com/ticket/36026>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 18, 2024, 11:01:05 AM12/18/24
to django-...@googlegroups.com
#36026: Add what .setup()` does to a view to the documentation
--------------------------------------+------------------------------------
Reporter: Willem Van Onsem | Owner: (none)
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 5.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Carlton Gibson):

* stage: Unreviewed => Accepted

Comment:

Seems reasonable, yes.
--
Ticket URL: <https://code.djangoproject.com/ticket/36026#comment:1>
Reply all
Reply to author
Forward
0 new messages