Thank you. It worked.
On 11月2日, 下午6时11分, "Chatchai Neanudorn" <[EMAIL PROTECTED]> wrote:
> from django.contrib.comments.models import Comment
> from post.models import Post
>
> #get comments for model
> Comment.objects.for_model(Post).count()
>
> #get comment for instance
> Comment.objects.for_model(Post.objects.get(id=1)).count()
>
> 2008/11/2 David.D <[EMAIL PROTECTED]>
>
>
>
> > I can get comment_count in templates:
>
> > {% get_comment_count for object as comment_count %}
>
> > But how to get it in my view?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---