Hide additional fields in comment form when user is authenticated.
|Reported by:||krisys||Owned by:||nobody|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I was using the django comments framework, but i realized that it is asking for name and few other fields even when the user is logged in. I went through few blogs on the net to find many suggestions which ask for modification in the template. But i feel it would be nice to have a constant COMMENT_ALLOW_UNAUTHENTICATED_USERS, so that only unauthenticated users get to see the name, email, url fields before commenting. while authenticated users will just see the comment box (which is a more common use case than the previous). This will reduce some burden on the users to do more work in the templates.
Additionally, we can show some of the fields if the user has not set it in his user profile, like name, email(if the user was created from the admin).
Change History (2)
comment:1 Changed 3 years ago by lrekucki
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Design decision needed
- Type changed from Uncategorized to New feature