1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-07-06 15:24:01 +02:00

Add QRCode View, URL and test template

This commit is contained in:
otthorn
2022-03-22 12:26:44 +01:00
committed by root
parent b8a93b0b75
commit 819b4214c9
3 changed files with 19 additions and 0 deletions

View File

@ -331,6 +331,13 @@ class ManageAuthTokens(LoginRequiredMixin, TemplateView):
context['token'] = Token.objects.get_or_create(user=self.request.user)[0]
return context
class QRCodeView(LoginRequiredMixin, TemplateView):
"""
Affiche le QR Code
"""
model = QRCode
template_name = "member/qr_code.html"
extra_context = {"title": _("QR Code")}
# ******************************* #
# CLUB #