membershipworks: Rename "Upcoming Events" to indicate Wordpress relation

This commit is contained in:
Adam Goldsmith 2024-07-18 11:42:10 -04:00
parent babe973863
commit 9efee41aba
3 changed files with 6 additions and 7 deletions

View File

@ -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",

View File

@ -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/",

View File

@ -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()