May 2018
Beginner to intermediate
282 pages
7h 58m
English
Fat models, thin views is an adage commonly told to Django beginners. Ideally, your views should not contain anything other than presentation logic.
However, over time, pieces of code that cannot be placed anywhere else tend to go into models. Soon, models become a dump yard for the code.
Consider refactoring out a Service object if your model contains code for any of the following:
Read now
Unlock full access