Skip to content

Commit

Permalink
added link to settings in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
larsvantol committed Feb 22, 2024
1 parent 918b8a0 commit 9d15484
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions tally/tally/templates/admin/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,11 @@
--selected-row: rgb(190, 209, 219);
}
</style>
{% endblock %}

{% block userlinks %}
{% if user.is_active and user.is_staff %}
<a href="/admin/settings">Settings</a> /
{% endif %}
{{ block.super }}
{% endblock %}
2 changes: 1 addition & 1 deletion tally/tally/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
from .views import is_authenticatedView, login_failureView, loginView, logoutView

urlpatterns = [
path("admin/settings/", include("dbsettings.urls")),
path("admin/", admin.site.urls),
path("settings/", include("dbsettings.urls")),
path("products/", include((products_urls.router.urls, "products"))),
path("transactions/", include((transactions_urls.router.urls, "transactions"))),
path("oidc/", include("mozilla_django_oidc.urls")),
Expand Down

0 comments on commit 9d15484

Please sign in to comment.