dcramer / django-ratings

Pluggable rating fields in Django.
BSD 2-Clause "Simplified" License
407 stars 167 forks source link

can_delete_vote is an unexpected keyword argument #18

Open john2x opened 13 years ago

john2x commented 13 years ago
 from djangoratings.fields import RatingField

 class MyModel(models.Model):
     rating = RatingField(range=1, can_change_vote=True, can_delete_vote=True)

 TypeError: __init__() got an unexpected keyword argument 'can_delete_vote'

I get this error when trying to enable can_delete_vote

EDIT: turns out it is allow_delete and not can_delete_vote. The readme appears to be incorrect.

fitzgeraldsteele commented 13 years ago

I used allow_delete, and I still got this error:

TypeError: init() got an unexpected keyword argument 'allow_delete'

fitzgeraldsteele commented 13 years ago

my bad...I had an old version (0.3.4). pip upgrade, manage reset and I'm good to go!