django_program.manage.views_financial¶
Financial overview dashboard views for conference management.
Provides revenue summaries, order/cart/payment breakdowns, ticket sales analytics, and recent transaction listings – all scoped to the current conference.
Classes
Permission mixin for finance-scoped management views. |
|
Comprehensive financial overview for a conference. |
- class django_program.manage.views_financial.FinancePermissionMixin[source]¶
Bases:
LoginRequiredMixinPermission mixin for finance-scoped management views.
Resolves the conference from the
conference_slugURL kwarg and checks that the authenticated user satisfies at least one of:is a superuser,
holds the
program_conference.change_conferencepermission (Conference Organizers), orbelongs to the “Program: Finance & Accounting” group.
Stores the resolved conference on
self.conferenceand injects it into the template context alongsideactive_nav.- Raises:
PermissionDenied – If the user fails all three checks.
- conference: Conference¶
- class django_program.manage.views_financial.FinancialDashboardView[source]¶
Bases:
FinancePermissionMixin,TemplateViewComprehensive financial overview for a conference.
Computes revenue totals, order/cart/payment breakdowns, ticket sales analytics, and surfaces recent orders and active carts. All data is scoped to
self.conference(resolved byFinancePermissionMixin).- template_name = 'django_program/manage/financial_dashboard.html'¶