From e62987cf72259c8dbb3543722f79f2d3975b9d92 Mon Sep 17 00:00:00 2001 From: Antonio Rodriguez Date: Tue, 5 May 2026 15:59:34 +0200 Subject: [PATCH 1/6] validate admin in urls, add management command to read from djangos email settings. --- README.md | 18 +- .../management/__init__.py | 0 .../management/commands/__init__.py | 0 .../commands/seed_notification_senders.py | 49 ++ .../coldfront_notifications/navbar.html | 29 + coldfront_notifications/tests/__init__.py | 0 .../tests/test_integration.py | 777 ++++++++++++++++++ coldfront_notifications/tests/test_unit.py | 426 ++++++++++ coldfront_notifications/views.py | 49 +- pyproject.toml | 1 - 10 files changed, 1331 insertions(+), 18 deletions(-) create mode 100644 coldfront_notifications/management/__init__.py create mode 100644 coldfront_notifications/management/commands/__init__.py create mode 100644 coldfront_notifications/management/commands/seed_notification_senders.py create mode 100644 coldfront_notifications/templates/coldfront_notifications/navbar.html create mode 100644 coldfront_notifications/tests/__init__.py create mode 100644 coldfront_notifications/tests/test_integration.py create mode 100644 coldfront_notifications/tests/test_unit.py diff --git a/README.md b/README.md index 2f9edb9..d9bd789 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,16 @@ for url_prefix, module, namespace in getattr(settings, "EXTRA_APPS_URLS", []): python manage.py migrate coldfront_notifications ``` +### Add the navbar dropdown + +Add this line to your ColdFront `authorized_navbar.html` (typically in `templates/common/authorized_navbar.html`), inside the `