Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Specify the vote affects #68

Open
quank123wip opened this issue Jul 4, 2020 · 2 comments
Open

Feature Request: Specify the vote affects #68

quank123wip opened this issue Jul 4, 2020 · 2 comments

Comments

@quank123wip
Copy link

We can only add one vote by the add function, but some user should have more power, need an option to specify the vote affects

@shellfly
Copy link
Owner

shellfly commented Jul 11, 2020

It's an interesting feature. There is a calculate_vote_score method on the VoteModel. If you overwrite this function on your model, you can get a custom score for every vote action. I'm not sure whether it can fulfill your requirement but you can take a look first.

@quank123wip
Copy link
Author

It's an interesting feature. There is a calculate_vote_score method on the VoteModel. If you overwrite this function on your model, you can get a custom score for every vote action. I'm not sure whether it can fulfill your requirement but you can take a look first.

Oh, It's a good idea. I think I will make a pull request.

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

No branches or pull requests

2 participants