GitHub Commit - Episode 7

Mixins are a crucial part of using Class-Based Views. They allow us to create functionality that can be injected into multiple views, while maintaining that code in only one place.

When you learn how to use mixins effectively, your code will shrink considerably and become much more maintainable. Whenever you find yourself repeating any code, you should know that it's time to include that code in a Mixin or BaseClass so that it's only written in one place.