Skip to content
This repository has been archived by the owner on Jul 17, 2018. It is now read-only.

can_delete_vote is an unexpected keyword argument #18

Open
john2x opened this issue Feb 8, 2011 · 2 comments
Open

can_delete_vote is an unexpected keyword argument #18

john2x opened this issue Feb 8, 2011 · 2 comments

Comments

@john2x
Copy link

john2x commented Feb 8, 2011

 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
Copy link

I used allow_delete, and I still got this error:

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

@fitzgeraldsteele
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants