From 9efee41abae6d2ba9e57f28ea025b31a224c4a7b Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 18 Jul 2024 11:42:10 -0400 Subject: [PATCH] membershipworks: Rename "Upcoming Events" to indicate Wordpress relation --- membershipworks/dashboard.py | 5 ++--- membershipworks/urls.py | 6 +++--- membershipworks/views.py | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/membershipworks/dashboard.py b/membershipworks/dashboard.py index e71808c..6e38302 100644 --- a/membershipworks/dashboard.py +++ b/membershipworks/dashboard.py @@ -13,10 +13,9 @@ class MembershipworksDashboardFragment(dashboard.LinksCardDashboardFragment): def links(self): links = [ Link( - "Upcoming Events", - reverse("membershipworks:upcoming-events"), + "Upcoming Events WordPress Post Generator", + reverse("membershipworks:upcoming-events-wordpress"), permission="membershipworks.view_event", - tooltip="Generator for Wordpress posts", ), Link( "Event Report", diff --git a/membershipworks/urls.py b/membershipworks/urls.py index ec722c7..db83ada 100644 --- a/membershipworks/urls.py +++ b/membershipworks/urls.py @@ -11,9 +11,9 @@ urlpatterns = [ name="member-autocomplete", ), path( - "upcoming-events/", - views.upcoming_events, - name="upcoming-events", + "upcoming-events-wordpress/", + views.upcoming_events_wordpress, + name="upcoming-events-wordpress", ), path( "event-report/", diff --git a/membershipworks/views.py b/membershipworks/views.py index b7a5422..0ef9caf 100644 --- a/membershipworks/views.py +++ b/membershipworks/views.py @@ -68,7 +68,7 @@ class MemberAutocomplete(autocomplete.Select2QuerySetView): @permission_required("membershipworks.view_eventext") -def upcoming_events(request): +def upcoming_events_wordpress(request): now = datetime.now() membershipworks = MembershipWorks()