diff --git a/tally/tally/templates/admin/base.html b/tally/tally/templates/admin/base.html index 8270583..980f129 100644 --- a/tally/tally/templates/admin/base.html +++ b/tally/tally/templates/admin/base.html @@ -23,4 +23,11 @@ --selected-row: rgb(190, 209, 219); } +{% endblock %} + +{% block userlinks %} + {% if user.is_active and user.is_staff %} + Settings / + {% endif %} + {{ block.super }} {% endblock %} \ No newline at end of file diff --git a/tally/tally/urls.py b/tally/tally/urls.py index 457b1cc..bef8ece 100644 --- a/tally/tally/urls.py +++ b/tally/tally/urls.py @@ -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")),