django-ratings icon indicating copy to clipboard operation
django-ratings copied to clipboard

can_delete_vote is an unexpected keyword argument

Open john2x opened this issue 14 years ago • 2 comments

 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.

john2x avatar Feb 08 '11 07:02 john2x

I used allow_delete, and I still got this error:

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

fitzgeraldsteele avatar Mar 28 '11 04:03 fitzgeraldsteele

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

fitzgeraldsteele avatar Mar 28 '11 05:03 fitzgeraldsteele