Code

Opened 3 years ago

Closed 13 months ago

#16346 closed New feature (wontfix)

Hide additional fields in comment form when user is authenticated.

Reported by: krisys Owned by: nobody
Component: contrib.comments Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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).

Attachments (0)

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

This could most be achieved by making a custom CommentForm (and probably a view, 'cause you have to pass the user to the form), which means making a custom app, which seems like a overkill for something simple like this. Global setting is most likely not a good idea.

comment:2 Changed 13 months ago by jacob

  • Resolution set to wontfix
  • Status changed from new to closed

django.contrib.comments has been deprecated and is no longer supported, so I'm closing this ticket. We're encouraging users to transition to a custom solution, or to a hosted solution like Disqus.

The code itself has moved to https://github.com/django/django-contrib-comments; if you want to keep using it, you could move this bug over there.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.