3 ms·
Completely agree. I don't know why people opt for CBV when you can refactor out the bits of function based views that are repeated, make them a function, and th
by the_cat_kittles 13y ago
Completely agree. I don't know why people opt for CBV when you can refactor out the bits of function based views that are repeated, make them a function, and then use that function in your functional views. If you refactor enough, and name your functions well, you basically have a story for each view you can read from top to bottom that tells you exactly what it does.