This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/passbook/factors/dummy/models.py

20 lines
480 B
Python
Raw Normal View History

2019-10-07 14:33:48 +00: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 14:33:48 +00: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")