One database table, one model, many behaviours: Proxy model

December 15, 2023 24 min Free

Description

Proxy models are a lesser-known feature within Django's model inheritance system. This talk explores how they work, how they differ from other inheritance styles Django offers, and practical real-world scenarios where they can be applied. Using simple code snippets and practical examples, Ronald Maravanyika dives into the intricacies of proxy models and model managers, demonstrating how to extend existing database structures without creating new tables and tune Pythonic behavior.