我想找到一种简单的方法来通知用户有关新发行说明的信息,而无需使用django-notifications或在数据库中的用户和发行说明表之间添加关系,使用类似标志的方法,一旦添加了新发行说明,该标识就会返回true,但是我不知道是否可以使用会话来检查用户是否已经看到发行说明。
Sessions are probably not a good solution for your problem:
If you are fine with users seeing release notes multiple times, storing the date/id of the last release note seen in the session could work.
The most reliable approach is a ReleaseNoteHistory
table where you store either the date of or a reference to the last release note the user has seen.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.