Hey fellow Djangoers-

My site is currently being attacked by an awful spam bot and I'm  
quickly trying to implement Akismet spam filtering. I'm using Django  
0.95 and am using the following code for Akismet:

http://www.b-list.org/weblog/2006/07/16/django-tips-hacking-freecomment

I followed James' instructions fully on a fresh copy of 0.95.  
However, I get the following error every time the spam bot posts a  
comment:

AttributeError: 'PublicFreeCommentManipulator' object has no  
attribute 'id'

On the following line of code:

   File "/home/ohgoditb/django_src/django/contrib/comments/views/ 
comments.py", line 167, in save
     mail_subject = 'New comment posted on %s "%s"' %  
(self.site.name, self.get_content_object().title)

Changing that line of code to "mail_subject = "New Spam!" doesn't  
solve the error. Even with the error, the spam gets through and is  
posted on my site. Where in the heck is Django getting "self.id" on a  
simple string variable?

I'd appreciate any and all help because my blog is absolutely flooded  
with spam. :(

-Tyson

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to