django_program.registration.forms

Forms for the registration app.

Classes

CartItemForm

Form for adding an item to the cart.

CheckoutForm

Billing information collected at checkout.

RefundForm

Admin form for issuing a full or partial refund on an order.

VoucherApplyForm

Form for applying a voucher code to the current cart.

class django_program.registration.forms.CartItemForm[source]

Bases: Form

Form for adding an item to the cart.

Validates that exactly one of ticket_type_id or addon_id is provided so each cart line references a single purchasable item.

clean()[source]

Ensure exactly one of ticket_type_id or addon_id is supplied.

Return type:

dict

base_fields = {'addon_id': <django.forms.fields.IntegerField object>, 'quantity': <django.forms.fields.IntegerField object>, 'ticket_type_id': <django.forms.fields.IntegerField object>}
declared_fields = {'addon_id': <django.forms.fields.IntegerField object>, 'quantity': <django.forms.fields.IntegerField object>, 'ticket_type_id': <django.forms.fields.IntegerField object>}
property media

Return all media required to render the widgets on this form.

class django_program.registration.forms.VoucherApplyForm[source]

Bases: Form

Form for applying a voucher code to the current cart.

base_fields = {'code': <django.forms.fields.CharField object>}
declared_fields = {'code': <django.forms.fields.CharField object>}
property media

Return all media required to render the widgets on this form.

class django_program.registration.forms.CheckoutForm[source]

Bases: Form

Billing information collected at checkout.

base_fields = {'billing_company': <django.forms.fields.CharField object>, 'billing_email': <django.forms.fields.EmailField object>, 'billing_name': <django.forms.fields.CharField object>}
declared_fields = {'billing_company': <django.forms.fields.CharField object>, 'billing_email': <django.forms.fields.EmailField object>, 'billing_name': <django.forms.fields.CharField object>}
property media

Return all media required to render the widgets on this form.

class django_program.registration.forms.RefundForm[source]

Bases: Form

Admin form for issuing a full or partial refund on an order.

base_fields = {'amount': <django.forms.fields.DecimalField object>, 'reason': <django.forms.fields.CharField object>}
declared_fields = {'amount': <django.forms.fields.DecimalField object>, 'reason': <django.forms.fields.CharField object>}
property media

Return all media required to render the widgets on this form.