Alex Gaynor 2/10/2009

A Second Look at Inheritance and Polymorphism with Django

Read Original

This technical article details a method for handling model inheritance and polymorphism in Django. It proposes a more involved but performant solution using a mixin that caches the subclass type, reducing query overhead from O(nk) to a more efficient system, complete with code examples for the save and retrieval logic.

A Second Look at Inheritance and Polymorphism with Django

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser