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): def links(self):
links = [ links = [
Link( Link(
"Upcoming Events", "Upcoming Events WordPress Post Generator",
reverse("membershipworks:upcoming-events"), reverse("membershipworks:upcoming-events-wordpress"),
permission="membershipworks.view_event", permission="membershipworks.view_event",
tooltip="Generator for Wordpress posts",
), ),
Link( Link(
"Event Report", "Event Report",

View File

@ -11,9 +11,9 @@ urlpatterns = [
name="member-autocomplete", name="member-autocomplete",
), ),
path( path(
"upcoming-events/", "upcoming-events-wordpress/",
views.upcoming_events, views.upcoming_events_wordpress,
name="upcoming-events", name="upcoming-events-wordpress",
), ),
path( path(
"event-report/", "event-report/",

View File

@ -68,7 +68,7 @@ class MemberAutocomplete(autocomplete.Select2QuerySetView):
@permission_required("membershipworks.view_eventext") @permission_required("membershipworks.view_eventext")
def upcoming_events(request): def upcoming_events_wordpress(request):
now = datetime.now() now = datetime.now()
membershipworks = MembershipWorks() membershipworks = MembershipWorks()