Skip to content

Glossary: Django Beyond the Basics

Mixin, multiple inheritance

Also written: mixin, multiple inheritance

A mixin is a small class that adds one feature, like a login check, to the class it is combined with. Python searches multiple parents left to right, so the mixin goes first.

Where the book teaches it

Related terms

LoginRequiredMixinsuper()