Refs #33690 -- Updated tutorial for admin dark mode toggle.

This commit is contained in:
Adam Johnson 2024-01-03 21:17:57 +00:00 committed by GitHub
parent 8fb0be3500
commit c65f49d3cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -368,6 +368,9 @@ a section of code like:
{% block branding %}
<div id="site-name"><a href="{% url 'admin:index' %}">Polls Administration</a></div>
{% if user.is_anonymous %}
{% include "admin/color_theme_toggle.html" %}
{% endif %}
{% endblock %}
We use this approach to teach you how to override templates. In an actual