-
Notifications
You must be signed in to change notification settings - Fork 160
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
How to order comment list by num of likedit
#349
Comments
With v2.x is not possible because of the relationship between It loads many comments from the fixtures directory, but I have not created yet a reactions fixture file. There are a number of users loaded in the User model, you can use any of the following. To login use the email address of the user, and the password is the part before the
I have not created yet a fixture file with reactions, but you can send some with those users. You will see that the app in v3 doesn't have yet JavaScript, but it's fully functional without it. After you have a few reactions you can query comments ordered by '-reactions':
or you can query for specific reactions:
v3.0.0 is already in a good shape, only that the JavaScript side of app is still under development. |
Thank you for your prompt reply and efforts on the project. So far, my website does not use any JavaScript in both front-end and backend, my intention is to build an website with 0 JavaScript, front-end is all Pure CSS. |
Sounds excellent to me. JavaScript can do a lot but it's not always the answer. I want to release v3.0.0 before the end of the year. |
I want to order comment list of an article by num of
likedit
in descending manner.I tried Query Expression,
but failed with error
Exception Value: | Cannot resolve keyword 'likedit_users' into field
.It seems that the only way out is adding an extra
field
(num_of_likes for example) to theComment
model.Before I customize the django-comments-xtd package by modifying the source code locally, I want to double confirm if there is any other easy ways to achieve the requirement without source code modifying?
The text was updated successfully, but these errors were encountered: