cfpb / idea-box

An application that lets an organization collect ideas, comment on them, and vote them up.
Creative Commons Zero v1.0 Universal
158 stars 49 forks source link

Comment has no attribute is_anonymous #113

Closed panduit-bew closed 2 years ago

panduit-bew commented 2 years ago

Did a little looking, the type of the comment I am seeing is and the comment type is: <class 'django.contrib.comments.models.Comment'> I think it should be custom-comments as the django comment object does not contain an is_anonymous function. Any ideas would be very helpful.

AttributeError at /comments/post/ 'Comment' object has no attribute 'is_anonymous' Request Method: POST Request URL: http://192.168.1.25:8000/comments/post/ Django Version: 1.5.12 Exception Type: AttributeError Exception Value:
'Comment' object has no attribute 'is_anonymous' Exception Location: /home/ideabox/development/mysite/idea/init.py in send_idea_notifications, line 15 Python Executable: /usr/bin/python Python Version: 2.7.18 Python Path:
['/home/ideabox/development/mysite', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/home/ideabox/.local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages'] Server time: Mon, 1 Nov 2021 19:55:22 -0500

panduit-bew commented 2 years ago

Need to specify COMMENTS_APP = 'core.custom_comments' in the project settings file.