Commits

limpbrains committed 36ff6a9

konstantinopol specifig patches

Comments (0)

Files changed (3)

 
         def render(self, context, instance, placeholder):
             
+            if 'commentform' in context['request'].GET:
+                self.render_template = 'comments/only_comment_form.html'
+            
             comments = Comment.objects.filter (
                 content_type=ContentType.objects.get_for_model(Discussion),
                 object_pk = instance.discussion.id)
 
 class CommentFormWithCaptcha(CommentForm):
     captcha = CaptchaField()
+    url = 1
 
     def get_comment_create_data(self):
         return super(CommentFormWithCaptcha, self).get_comment_create_data()

templates/comments/only_comment_form.html

+{% load comments %}
+{% render_comment_form for instance %}