私のモデル:
HitCounter:
hits = models.PositiveIntegerField(default=0)
object_pk = models.TextField('object ID')
content_type = models.ForeignKey(ContentType,
verbose_name="content cype",
related_name="content_type_set_for_%(class)s",)
content_object = generic.GenericForeignKey('content_type', 'object_pk')
アイテム:
title = models.CharField(_('Title'), max_length=400)
desc = models.TextField(_('Description'), blank=True
)。
HitCounterのヒットでItemのアイテムを並べ替えたいですか?私は何をすべきか?