cmsmanage/membershipworks/urls.py

40 lines
825 B
Python

from django.urls import path
from .views import (
EventIndexReport,
EventMonthReport,
EventYearReport,
MemberAutocomplete,
upcoming_events,
)
app_name = "membershipworks"
urlpatterns = [
path(
"member-autocomplete/",
MemberAutocomplete.as_view(),
name="member-autocomplete",
),
path(
"upcoming-events/",
upcoming_events,
name="upcoming-events",
),
path(
"event-report/",
EventIndexReport.as_view(),
name="event-index-report",
),
path(
"event-report/<int:year>/",
EventYearReport.as_view(),
name="event-year-report",
),
path(
"event-report/<int:year>/<int:month>/",
EventMonthReport.as_view(month_format="%m"),
name="event-month-report",
),
]