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
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
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:
{% 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
4 matches
Mail list logo