Skip to content

Commit f3ceedf

Browse files
committedMay 27, 2024·
Add a comment for the 2FA setup in admin/base_site.html
- It requires the custom admin app
1 parent 3ccdb34 commit f3ceedf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎styleguide_example/templates/admin/base_site.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
{% block userlinks %}
44
{% if user.is_active and user.is_staff %}
5-
<a href="{% url "admin:setup-2fa" %}"> Setup 2FA </a> /
5+
{% comment %}
6+
You'll need the custom admin app loaded, otherwise you'll get an error.
7+
<a href="{% url "admin:setup-2fa" %}"> Setup 2FA </a> /
8+
{% endcomment %}
69
{% endif %}
710

811
{{ block.super }}

0 commit comments

Comments
 (0)
Please sign in to comment.