Re: ABC/MTI and Generic Date Based Views

2009-02-09 Thread seanbrant
Thanks I'll deal with the performance hit for now, and keep my figures crossed :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.co

Re: ABC/MTI and Generic Date Based Views

2009-02-09 Thread seanbrant
Sorry about my initial post, Im new here. I'll try harder next time ;) I choose MTI and added a entry_type field to the main Entry model. > ...(note that this could turn a Base.objects.all() query into O(n) queries). Is there a way out of the box to preform joins up front, when going from child

ABC/MTI and Generic Date Based Views

2009-02-07 Thread seanbrant
Im have troubling figuring about a good solution for blog posts. I have created a ABC called Entry which Post, Link, Photo, Quote inherit. I first tired it with MTI and set Entry.objects.all() as the queryset attribute. This will pass the list of Entry's to the template which I can iterate over.