all: add more helpful help_text to models

This commit is contained in:
Jens Langhammer
2020-02-21 15:12:16 +01:00
parent e2f836feae
commit 26bf6fd22f
7 changed files with 127 additions and 12 deletions

View File

@ -1,6 +1,6 @@
"""passbook captcha factor"""
from django.db import models
from django.utils.translation import gettext as _
from django.utils.translation import gettext_lazy as _
from passbook.core.models import Factor
@ -8,8 +8,16 @@ from passbook.core.models import Factor
class CaptchaFactor(Factor):
"""Captcha Factor instance"""
public_key = models.TextField()
private_key = models.TextField()
public_key = models.TextField(
help_text=_(
"Public key, acquired from https://www.google.com/recaptcha/intro/v3.html"
)
)
private_key = models.TextField(
help_text=_(
"Private key, acquired from https://www.google.com/recaptcha/intro/v3.html"
)
)
type = "passbook.factors.captcha.factor.CaptchaFactor"
form = "passbook.factors.captcha.forms.CaptchaFactorForm"