Commits

Kevin Veroneau  committed fd15bac Draft

Fixed references to old app name.

  • Participants
  • Parent commits 680a6b4

Comments (0)

Files changed (3)

             if post_vars[key] == '': del post_vars[key]
         return post_vars
 
-def NexGenCommentForm(req, initial=None):
+def CommentForm(req, initial=None):
     frm = myForm(req)
     frm.addField('hidden', 'next')
     frm.addField('hidden', 'content_type')

File templatetags/antibot_comments_tags.py

 from django import template
 from django.template import TemplateSyntaxError
-from nexgen_comments.forms import NexGenCommentForm
+from antibot-forms.forms import CommentForm
 from django.conf import settings
 from django.utils.hashcompat import sha_constructor
 import time
 
 @register.inclusion_tag("comments/form.html", takes_context=True)
 def comment_form(context,obj):
-    frm = NexGenCommentForm(context['request'], initial=generate_initial(obj))
+    frm = CommentForm(context['request'], initial=generate_initial(obj))
     return {'frm':frm}
 from django.views.decorators.csrf import csrf_protect
 from django.views.decorators.http import require_POST
-from nexgen_comments.forms import NexGenCommentForm
+from antibot-forms.forms import CommentForm
 from django.core.mail import mail_admins
 from django.contrib.comments.views.comments import CommentPostBadRequest,\
     comment_done
 @csrf_protect
 @require_POST
 def post_comment(request, next=None, using=None):
-    frm = NexGenCommentForm(request)
+    frm = CommentForm(request)
     if not frm.is_valid():
         try:
             comment = frm.getField('comment')