django_program.sponsors.admin

Django admin configuration for the sponsors app.

Classes

BulkPurchaseAdmin

Admin interface for managing sponsor bulk voucher purchases.

BulkPurchaseVoucherAdmin

Admin interface for viewing bulk purchase voucher links.

BulkPurchaseVoucherInline

Read-only inline for vouchers generated by a bulk purchase.

SponsorAdmin

Admin interface for managing sponsors with inline benefits.

SponsorBenefitInline

Inline editor for sponsor benefits within the sponsor admin.

SponsorLevelAdmin

Admin interface for managing sponsor levels.

SponsorOverrideAdmin

Admin interface for managing sponsor overrides.

class django_program.sponsors.admin.SponsorBenefitInline[source]

Bases: TabularInline

Inline editor for sponsor benefits within the sponsor admin.

model

alias of SponsorBenefit

extra = 1
fields = ('name', 'description', 'is_complete', 'notes')
property media
class django_program.sponsors.admin.BulkPurchaseVoucherInline[source]

Bases: TabularInline

Read-only inline for vouchers generated by a bulk purchase.

model

alias of BulkPurchaseVoucher

extra = 0
fields = ('voucher', 'created_at')
readonly_fields = ('voucher', 'created_at')
can_delete = False
has_add_permission(request, obj=None)[source]

Prevent manual addition of voucher links.

Parameters:
  • request (HttpRequest)

  • obj (object)

Return type:

bool

property media
class django_program.sponsors.admin.SponsorLevelAdmin[source]

Bases: ModelAdmin

Admin interface for managing sponsor levels.

list_display = ('name', 'conference', 'cost', 'comp_ticket_count', 'order')
list_filter = ('conference',)
search_fields = ('name', 'slug')
property media
class django_program.sponsors.admin.SponsorAdmin[source]

Bases: ModelAdmin

Admin interface for managing sponsors with inline benefits.

list_display = ('name', 'conference', 'level', 'is_active')
list_filter = ('conference', 'level', 'is_active')
search_fields = ('name', 'slug', 'contact_name', 'contact_email')
inlines = (<class 'django_program.sponsors.admin.SponsorBenefitInline'>,)
property media
class django_program.sponsors.admin.SponsorOverrideAdmin[source]

Bases: ModelAdmin

Admin interface for managing sponsor overrides.

list_display = ('sponsor', 'conference', 'override_name', 'override_is_active', 'updated_at')
list_filter = ('conference',)
search_fields = ('sponsor__name', 'override_name', 'note')
raw_id_fields = ('sponsor', 'override_level', 'created_by')
readonly_fields = ('created_at', 'updated_at')
property media
class django_program.sponsors.admin.BulkPurchaseAdmin[source]

Bases: ModelAdmin

Admin interface for managing sponsor bulk voucher purchases.

list_display = ('__str__', 'conference', 'sponsor', 'quantity', 'payment_status', 'total_amount', 'created_at')
list_filter = ('conference', 'payment_status')
search_fields = ('sponsor__name', 'product_description', 'stripe_payment_intent_id')
raw_id_fields = ('sponsor', 'ticket_type', 'requested_by', 'approved_by')
readonly_fields = ('created_at', 'updated_at')
inlines = (<class 'django_program.sponsors.admin.BulkPurchaseVoucherInline'>,)
property media
class django_program.sponsors.admin.BulkPurchaseVoucherAdmin[source]

Bases: ModelAdmin

Admin interface for viewing bulk purchase voucher links.

list_display = ('bulk_purchase', 'voucher', 'created_at')
list_filter = ('bulk_purchase__conference',)
search_fields = ('voucher__code', 'bulk_purchase__sponsor__name')
raw_id_fields = ('bulk_purchase', 'voucher')
readonly_fields = ('created_at',)
property media