Re: 'str' object has no attribute '_meta' while using comment system

2008-11-26 Thread izzy
Ok. I get it. form should have an object instance. Thanks for pointing it out. And sorry to bother you from my stupid mistake. On Nov 27, 10:14 am, "Chatchai Neanudorn" <[EMAIL PROTECTED]> wrote: > what happen if form = "" ? > > better to use meaning full object, you will need to use form in a

Re: 'str' object has no attribute '_meta' while using comment system

2008-11-26 Thread Chatchai Neanudorn
what happen if form = "" ? better to use meaning full object, you will need to use form in advance 2008/11/27 izzy <[EMAIL PROTECTED]> > > Yes I've done that. > > def packagingreport_details(request, object_id): >report = get_object_or_404(PackagingReport, pk=object_id) >user = r

Re: 'str' object has no attribute '_meta' while using comment system

2008-11-26 Thread izzy
Yes I've done that. def packagingreport_details(request, object_id): report = get_object_or_404(PackagingReport, pk=object_id) user = request.user messages = '' errors = '' if report.author == user: form = report else:

Re: 'str' object has no attribute '_meta' while using comment system

2008-11-26 Thread Chatchai Neanudorn
{% get_comment_count for *form *as comment_count %} make sure you put the right object (in your code is form, what is it? do you have template context names form?) for comment templatetag and it is available chatchai 2008/11/27 izzy <[EMAIL PROTECTED]> > > Hi all. > > I've been having a problem