Commit 25bc8280 authored by okhin's avatar okhin 🚴

Adding a new apps for the captchas comments

parent 60bd86cb
from spamlesscomment.forms import CommentFormWithCaptcha
def get_form():
return CommentFormWithCaptcha
from django.contrib import admin
# Register your models here.
from django import forms
from django_comments.forms import CommentForm
from django_comments.models import Comment
from django.utils.translation import ugettext_lazy as _
from captcha.fields import CaptchaField
class CommentFormWithCaptcha(CommentForm):
captcha = CaptchaField(label=_("In order to protect against spam, please fill in the result of the following calculation. (note the + and the * are somewhat confusing)"))
def get_comment_model(self):
return Comment
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.shortcuts import render
# Create your views here.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment