Hi,

I am trying to customise the comments app by adding rating field.
i am using django-ratings along with jquery-star.
I have followed the instructions mentioned in 
http://www.azavea.com/blogs/labs/2011/04/jquery-star-rating-with-django-ratings/
 but 
i am getting an error when i try to post the comment.
Below is the error i am getting

Traceback:
File 
"/Users/django_demo/godjango/lib/python2.7/site-packages/django/core/handlers/base.py"
 
in get_response
  111.                         response = callback(request, *callback_args, 
**callback_kwargs)
File 
"/Users/django_demo/godjango/lib/python2.7/site-packages/django/utils/decorators.py"
 
in _wrapped_view
  91.                     response = view_func(request, *args, **kwargs)
File 
"/Users/django_demo/godjango/lib/python2.7/site-packages/django/views/decorators/http.py"
 
in inner
  41.             return func(request, *args, **kwargs)
File 
"/Users/django_demo/godjango/lib/python2.7/site-packages/django/contrib/comments/views/comments.py"
 
in post_comment
  109.     comment = form.get_comment_object()
File 
"/Users/django_demo/godjango/lib/python2.7/site-packages/django/contrib/comments/forms.py"
 
in get_comment_object
  115.         new = CommentModel(**self.get_comment_create_data())
File 
"/Users/django_demo/godjango/lib/python2.7/site-packages/django/db/models/base.py"
 
in __init__
  367.                 raise TypeError("'%s' is an invalid keyword argument 
for this function" % kwargs.keys()[0])

Exception Type: TypeError at /comments/post/
Exception Value:* 'rating' is an invalid keyword argument for this function*

I have copied my code in here https://gist.github.com/4347324

Can anyone help with this?

Thanks
Sri

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/rAHbChP2TKYJ.
To post to this group, send email to django-users@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