I am building a Django, DRF based mobile app and I want to have functionality of up votes and down votes for posts that user will post.
So what I want to say here that, if an user upvotes a post then it should be get higher ranks as quora questions do. and if there are more down votes than up votes then a post should be moved down ward rather than going up.
I have applied a logic already here and shared the screenshots as well. but I am sure that there is a better logic or solution for this problem.
Thanks in advance.
Mr Mike and Mr Lalit can you guide me here please?
-- You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c72fefe7-58d2-4c43-84b8-0faa3d9747b0n%40googlegroups.com.
No comments:
Post a Comment