Assuming your app is named 'gallery' with a model named 'photo', I
believe the call should be:

{% get_comment_count for gallery.photo as comment_count %}


On Nov 6, 5:12 pm, Bobby Roberts <tchend...@gmail.com> wrote:
> howdy -
>
> i'm trying to use comments on my site as follows:
>
> {% get_comment_count for galleryphoto as comment_count %}
>
> this generates the following error:
>
> Caught AttributeError while rendering: 'str' object has no attribute
> '_meta'
>
> any idea what this error means?
>
> I looked in /admin and under comments and in objects, i see "gallery
> photo" (with a space).
>
> when i try to use:
>
> {% get_comment_count for gallery photo as comment_count %}   <<< note
> the space in gallery photo
>
> I get this err:
>
> Third argument in u'get_comment_count' must be in the format
> 'app.model'
>
> any help is appreciated on how to address this issue.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to