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.
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
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
3 matches
Mail list logo