Hi, 


I am trying to add django-ratings to my app and it keeps falling over when 
i try to add a rating. The steps i have followed is below 

1) pip install django-ratings 

2) Add 'djangoratings' to my settings.py 

3) Add a field in my model class with field name "cust_rating = 
RatingField(range=5)"


Now when i try to add a rating by adding the below line, system is throwing 
an error.


mymodel.cust_rating.add(score=int(4), user=request.user, 
ip_address=request.META['REMOTE_ADDR'])


Can anyone help with what i am missing?


Thanks

-- 
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/-/pKSm3PwVFkEJ.
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