tag:blogger.com,1999:blog-7176062489626496619.post2398030335968933484..comments2023-05-03T11:51:28.484-04:00Comments on Lazy Pythonista: Playing with Polymorphism in DjangoAlexhttp://www.blogger.com/profile/14054821112394577330noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-7176062489626496619.post-70345820286676897692008-12-07T02:04:00.000-05:002008-12-07T02:04:00.000-05:00Hey Alex,I liked this approach:http://www.djangosn...Hey Alex,<BR/><BR/>I liked this approach:<BR/><BR/>http://www.djangosnippets.org/snippets/1031/<BR/><BR/>It requires adding a column to the base table for holding the contenttype of the most derived model.<BR/><BR/>Instead of or in addition to adding it as a method to the model, I would add a method to a manager instead, like here:<BR/><BR/>http://www.djangosnippets.org/snippets/1034/Benjamin Higginshttps://www.blogger.com/profile/18314147263752529706noreply@blogger.com