Skip to content

Commit

Permalink
Update admin logo, fix app_list in our admin subclass
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchrisadams committed May 3, 2024
1 parent e1abdef commit 874b71a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions apps/accounts/admin_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,11 @@ def get_urls(self):
]
return patterns + urls

def get_app_list(self, request):
app_list = super().get_app_list(request)
def get_app_list(self, request, app_label=None):
app_list = super().get_app_list(request, app_label)

if app_label:
return app_list

if flag_is_active(request, "provider_request"):
verification_request_item = {
Expand Down
2 changes: 1 addition & 1 deletion apps/accounts/templates/admin_index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "admin/base_site.html" %}
{% extends "admin/base_site.html" %}
{% load i18n static %}

{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}">{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion templates/admin/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<h1 id="site-name">
<a href="{% url 'admin:index' %}">
<img src="{% static 'img/member-portal-logo.png' %}" />
<img width='200px' height="48px" src="{% static 'img/TGWF-logo.svg' %}" />
</a></h1>

<style>
Expand Down

0 comments on commit 874b71a

Please sign in to comment.