django_program.manage.views_bulk_purchases¶
Views for bulk purchase management in the organizer dashboard.
Classes
Approve a pending bulk purchase (POST-only). |
|
Create a new bulk purchase on behalf of a sponsor. |
|
Display full details of a bulk purchase with its generated voucher codes. |
|
Trigger voucher generation for a paid bulk purchase (POST-only). |
|
List all bulk purchases for the current conference. |
- class django_program.manage.views_bulk_purchases.BulkPurchaseListView[source]¶
Bases:
ConferencePermissionMixin,ListViewList all bulk purchases for the current conference.
Supports optional filtering by payment status via the
?status=query parameter.- template_name = 'django_program/manage/bulk_purchase_list.html'¶
- context_object_name = 'bulk_purchases'¶
- paginate_by = 50¶
- class django_program.manage.views_bulk_purchases.BulkPurchaseDetailView[source]¶
Bases:
ConferencePermissionMixin,DetailViewDisplay full details of a bulk purchase with its generated voucher codes.
- template_name = 'django_program/manage/bulk_purchase_detail.html'¶
- context_object_name = 'purchase'¶
- class django_program.manage.views_bulk_purchases.BulkPurchaseCreateView[source]¶
Bases:
ConferencePermissionMixin,CreateViewCreate a new bulk purchase on behalf of a sponsor.
- template_name = 'django_program/manage/bulk_purchase_form.html'¶
- form_class¶
alias of
BulkPurchaseCreateForm
- get_form(form_class=None)[source]¶
Scope sponsor, ticket type, and add-on querysets to the current conference.
- Parameters:
form_class (
type[BulkPurchaseCreateForm] |None)- Return type:
- form_valid(form)[source]¶
Assign the conference and requesting user before saving.
- Parameters:
form (
BulkPurchaseCreateForm)- Return type:
HttpResponse
- class django_program.manage.views_bulk_purchases.BulkPurchaseApproveView[source]¶
Bases:
ConferencePermissionMixin,ViewApprove a pending bulk purchase (POST-only).
Sets the payment status to APPROVED and records the approving user. The organizer must still configure voucher details and pricing before fulfillment can proceed.
- class django_program.manage.views_bulk_purchases.BulkPurchaseFulfillView[source]¶
Bases:
ConferencePermissionMixin,ViewTrigger voucher generation for a paid bulk purchase (POST-only).
Generates voucher codes using the stored
voucher_configand links them back to the purchase viaBulkPurchaseVoucherrecords.