观看页面上的星级评分,并在另一页上进行评分

发布于 2025-02-02 19:21:53 字数 74 浏览 0 评论 0原文

我是Django的新手,我正在使用星级。 我想知道用户是否有可能在一个页面上看到评分而无需选择评分的评分,而在另一页上,同一用户可以对

I am new to Django and I'm using Star-Rating.
I would like to know if there is a possibility a user can see the ratings on one page without the opting to rate and on another page, the same user can rate

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不如归去 2025-02-09 19:21:53

解决了。

如果您希望“只读”星级对象
您可以将仅在对象标签中读取为true的值
这样:

{% ratings <object name> read_only = True%}

如果您想启用评分,则可以省略标签

Solved it.

if you want a star-rating object to be 'read only'
you can set read-only in the object tag to a value of True
like this:

{% ratings <object name> read_only = True%}

if you want to enable rating you can just leave out the tag

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文