24 lines
592 B
Python
24 lines
592 B
Python
|
"""passbook captcha factor"""
|
||
|
from django.db import models
|
||
|
from django.utils.translation import gettext as _
|
||
|
|
||
|
from passbook.core.models import Factor
|
||
|
|
||
|
|
||
|
class CaptchaFactor(Factor):
|
||
|
"""Captcha Factor instance"""
|
||
|
|
||
|
public_key = models.TextField()
|
||
|
private_key = models.TextField()
|
||
|
|
||
|
type = 'passbook.captcha_factor.factor.CaptchaFactor'
|
||
|
form = 'passbook.captcha_factor.forms.CaptchaFactorForm'
|
||
|
|
||
|
def __str__(self):
|
||
|
return "Captcha Factor %s" % self.slug
|
||
|
|
||
|
class Meta:
|
||
|
|
||
|
verbose_name = _('Captcha Factor')
|
||
|
verbose_name_plural = _('Captcha Factors')
|