Re: Join two different querysets

2008-06-24 Thread Rajesh Dhawan
If you want to do something fancier than the queryset -> list -> merge -> sort, you could create a base model class with just the creation date in it since the creation date is being used to sort across the two types of objects. Then, derive the Comment and Trackback classes from this base class.

Re: Join two different querysets

2008-06-24 Thread Rajesh Dhawan
Hi Florian , > A Blog has Comments and Trackbacks. Trackbacks should be shown like > comments but they get a div class="Trackback" instead of > class="Comment" in HTML. > > My idea was to join all Trackbacks and Comments and use a an > additional attribute to tell them apart in HTML: > > def

Join two different querysets

2008-06-24 Thread Florian Lindner
Hello, I have the following situation: A Blog has Comments and Trackbacks. Trackbacks should be shown like comments but they get a div class="Trackback" instead of class="Comment" in HTML. My idea was to join all Trackbacks and Comments and use a an additional attribute to tell them apart