Chapter Summary

In this chapter, we dug much deeper into Django’s models, exploring the essentials of Django’s models.

We looked at the common data management functions built into Django. We also learned about the common model methods that return QuerySets and those that don’t, model field lookups, aggregate functions, and building complex queries.

We also covered adding and overriding model managers and model methods, and had a look at how model inheritance works in Django.

In the next chapter, we will take a similar deep-dive into the inner workings of Django’s views.