Задать вопрос

Тел: +7 965 3737 888

447

Просмотров

1

Ответов

Get most-commented objects

<p>This is a pretty straightforward bit of code for getting the most-commented objects of a particular model; just drop it into a custom manager for that model, and you should be good to go. Check the docstring for how to make it look at Comment instead of FreeComment.</p>

Вопрос полезен? Да0/Нет0
file_2305.py(1.2Кб)
None

Ответы (1):

Ответkerpunk:24.03.2010
Ответ полезен? Да0/Нет0

This wasn't working for me, so I changed each reference to object_id to object_pk, to reference the correct column in django_comments