#4887: contrib.comments DoCommentForm unicode issue
---------------------------------------------+------------------------------
Reporter: Brian Rosner <[EMAIL PROTECTED]> | Owner: adrian
Status: new | Component:
django.contrib.comments
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 1
---------------------------------------------+------------------------------
When a template contains the following:
{{{
{% comment_form for products.product object.id with ratings_required
scale:1-5|first_option %}
}}}
You will receive the following traceback:
{{{
...
File "/usr/lib/python2.4/site-
packages/django/contrib/comments/templatetags/comments.py" in __call__
205. return CommentFormNode(content_type, obj_id_lookup_var, obj_id,
self.free, **kwargs)
TypeError at /product/1/post_review/
__init__() keywords must be strings
}}}
This is due to {{{ ratings_required }}} being passed into the {{{ kwargs
}}} dict as a unicode object. I am using Python 2.4 and it appears to not
like unicode objects used as kwargs.
--
Ticket URL: <http://code.djangoproject.com/ticket/4887>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---