#9429 closed (fixed)
Comment.get_as_text returns no information about non-authenticated users
Reported by: | Kjell Magne Fauske | Owned by: | nobody |
---|---|---|---|
Component: | contrib.comments | Version: | dev |
Severity: | Keywords: | comments username anonymous | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The get_as_text method
in django.contrib.comments.models.Comments
uses the self.user
field when inserting information about the commenter. This field will be set to None
for non-authenticated users. The name
property should be used instead since it checks that a user is authenticated or not and returns the correct name in both cases.
Attachments (1)
Change History (4)
by , 16 years ago
comment:1 by , 16 years ago
Has patch: | set |
---|---|
Keywords: | comments username anonymous added |
Triage Stage: | Unreviewed → Accepted |
Version: | → SVN |
Note:
See TracTickets
for help on using tickets.
git-patch against latest checkout