46 lines
961 B
Python
46 lines
961 B
Python
from django.urls import path
|
|
|
|
from .views import (
|
|
EventIndexReport,
|
|
EventInvoiceView,
|
|
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",
|
|
),
|
|
path(
|
|
"event-invoice/<eid>",
|
|
EventInvoiceView.as_view(),
|
|
name="event-invoice",
|
|
),
|
|
]
|