authentik/passbook/factors/dummy/models.py

20 lines
480 B
Python
Raw Normal View History

2019-10-07 15:33:48 +01:00
"""dummy factor models"""
from django.utils.translation import gettext as _
from passbook.core.models import Factor
class DummyFactor(Factor):
"""Dummy factor, mostly used to debug"""
2019-12-31 11:51:16 +00:00
type = "passbook.factors.dummy.factor.DummyFactor"
form = "passbook.factors.dummy.forms.DummyFactorForm"
2019-10-07 15:33:48 +01:00
def __str__(self):
return f"Dummy Factor {self.slug}"
class Meta:
2019-12-31 11:51:16 +00:00
verbose_name = _("Dummy Factor")
verbose_name_plural = _("Dummy Factors")