VKNT, a Vacation Management System, is a place to store your possible holiday locations. It is the ideal place to start making plans, sharing and noting down tips.
1
stars
1
forks
source link
Comments can be placed public, but unauthenticated cannot view comments #223
[x] Create setting in settings.py: "Allow unauthenticated users to read comments"
[x] Add setting in context processor
[x] Use setting to display "public" in add comment form
[x] Use setting to load comments
Result;
when "Allow unauthenticated users to read comments" is True, comments can be added with visibility public, and unauthenticated users can read these comments.
When "Allow unauthenticated users to read comments" is False, the visibility public is not shown, and comments will not appear, a sign-up or login text is shown in stead.
[x] Create setting in settings.py: "Allow unauthenticated users to read comments" [x] Add setting in context processor [x] Use setting to display "public" in add comment form [x] Use setting to load comments
Result; when "Allow unauthenticated users to read comments" is True, comments can be added with visibility public, and unauthenticated users can read these comments. When "Allow unauthenticated users to read comments" is False, the visibility public is not shown, and comments will not appear, a sign-up or login text is shown in stead.