Re: Fully Polymorphic Django Models: a simple implementation

2010-01-22 Thread hejsan
This is the best news I've heard for a long time! This was also my biggest disappointment with Django. This bit me in my first django project, which incidentally was also my first experience with ORM. Basically I had the following class structure: Project Art Project Research Project

Re: Fully Polymorphic Django Models: a simple implementation

2010-01-22 Thread rvdrijst
Wow, amazing job! This addresses the big disappointment I felt when I found out django Model Inheritance didn't do this by default. I used some ugly workarounds to make it happen and this seems like the perfect solution. Main problem is that it requires django 1.1, I'm working with trunk/1.2, but

Fully Polymorphic Django Models: a simple implementation

2010-01-15 Thread Bert Constantin
Hello everyone! I just uploaded a simple but mostly complete implementation of model and queryset polymorphism onto github and bitbucket. For enabled models, this implementation simply makes all references to the model's objects polymorphic (be it managers/querysets or relationship fields). The