django_program.registration.forms¶
Forms for the registration app.
Classes
Form for adding an item to the cart. |
|
Billing information collected at checkout. |
|
Admin form for issuing a full or partial refund on an order. |
|
Form for applying a voucher code to the current cart. |
- class django_program.registration.forms.CartItemForm[source]¶
Bases:
FormForm for adding an item to the cart.
Validates that exactly one of
ticket_type_idoraddon_idis provided so each cart line references a single purchasable item.- 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:
FormForm 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:
FormBilling 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:
FormAdmin 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.