Open john2x opened 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
can_delete_vote
EDIT: turns out it is allow_delete and not can_delete_vote. The readme appears to be incorrect.
allow_delete
I used allow_delete, and I still got this error:
TypeError: init() got an unexpected keyword argument 'allow_delete'
my bad...I had an old version (0.3.4). pip upgrade, manage reset and I'm good to go!
I get this error when trying to enable
can_delete_vote
EDIT: turns out it is
allow_delete
and notcan_delete_vote
. The readme appears to be incorrect.