Well, following the doc, this code works :

{% get_comment_list for myModule.News 1 as comment_list %}

But  I don't want to have to write the object_id in my template !

   def index(request, name, cp):
    news_content = News.objects.order_by('id')
    return render_to_response('index.html', {
        'title' : 'news_content.title';
        ...
        })

PEP

On 23 mar, 18:20, Daniel Roseman <dan...@roseman.org.uk> wrote:
> On Mar 23, 5:07 pm, Pep <pepourqu...@gmail.com> wrote:
>
>
>
> > Hi everybody,
>
> > An error occured when I want to use the comment framework. Django
> > debug says me : "Caught an exception while rendering: 'str' object has
> > no attribute '_meta'"
>
> > I don't understand why because when I use the comment framework on the
> > same project with Diario module, it works fine !
>
> > My template code :
> >     {% load comments %}
> >     {% get_comment_list for News as comment_list %}
>
> > The model :
> >     class News(models.Model):
>
> > Thanks for your help
>
> But what is News in your template context? Show us the relevant part
> of the views code.
> --
> DR.

-- 
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