So naturally I would love to see the feature on all of the CB(G)V pages,
particularly those with a form as they are more complicated.
Why is this necessary?
1. To make the multiple branches of form view logic more explicit. What
methods get called when there is a GET? What about a POST?
2. To gain all the advantages that the "Method Flow" chart has provided to
the other views. For me it has been primarily helpful for understanding
and figuring out how to avoid duplicate queries.
Moved from comment on: ticket:20608
--
Ticket URL: <https://code.djangoproject.com/ticket/24162>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
I'm a bit confused by your description (I've never heard of "Method
flowchart"), but if you want to see whole ancestors tree with all methods
(and code snippets!), have a look at http://ccbv.co.uk
The question whether this should be included in docs remains. Personally I
use http://ccbv.co.uk a lot. Without this site the CBV would be very hard
to customize (yes, I still can browse the source code, but it isn't
definitely as convenient as http://ccbv.co.uk)
--
Ticket URL: <https://code.djangoproject.com/ticket/24162#comment:1>
* cc: tomas.ehrlich@… (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/24162#comment:2>
* stage: Unreviewed => Accepted
Comment:
An example "Method Flowchart" is here:
https://docs.djangoproject.com/en/dev/ref/class-based-views/generic-
display/#listview.
--
Ticket URL: <https://code.djangoproject.com/ticket/24162#comment:3>
Old description:
> First off, to whoever had the idea and put in the effort to add the
> "Method Flowchart" to the CBV and CBGV doc pages, thank you, thank you,
> thank you. So helpful.
>
> So naturally I would love to see the feature on all of the CB(G)V pages,
> particularly those with a form as they are more complicated.
>
> Why is this necessary?
>
> 1. To make the multiple branches of form view logic more explicit. What
> methods get called when there is a GET? What about a POST?
>
> 2. To gain all the advantages that the "Method Flow" chart has provided
> to the other views. For me it has been primarily helpful for
> understanding and figuring out how to avoid duplicate queries.
>
> Moved from comment on: ticket:20608
New description:
First off, to whoever had the idea and put in the effort to add the
"Method Flowchart" to some of the CBV and CBGV doc pages, thank you, thank
you, thank you. So helpful.
Example "Method Flowchart": https://docs.djangoproject.com/en/dev/ref
/class-based-views/generic-display/#listview
So naturally I would love to see the feature on all of the CB(G)V pages,
particularly those with a form as they are more complicated.
Why is this necessary?
1. To make the multiple branches of form view logic more explicit. What
methods get called when there is a GET? What about a POST?
2. To gain all the advantages that the "Method Flow" chart has provided to
the other views. For me it has been primarily helpful for understanding
and figuring out how to avoid duplicate queries.
Moved from comment on: ticket:20608
--
--
Ticket URL: <https://code.djangoproject.com/ticket/24162#comment:4>