#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.