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.

LetterRequestForm

Form for attendees to request a visa invitation letter.

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.

class django_program.registration.forms.LetterRequestForm[source]

Bases: ModelForm

Form for attendees to request a visa invitation letter.

Collects passport details, travel dates, and destination information needed to produce a formal letter for embassy submission.

class Meta[source]

Bases: object

model

alias of LetterRequest

fields = ['passport_name', 'passport_number', 'nationality', 'date_of_birth', 'travel_from', 'travel_until', 'destination_address', 'embassy_name']
widgets = {'date_of_birth': <django.forms.widgets.DateInput object>, 'destination_address': <django.forms.widgets.Textarea object>, 'travel_from': <django.forms.widgets.DateInput object>, 'travel_until': <django.forms.widgets.DateInput object>}
clean()[source]

Validate that travel_from is before travel_until.

Return type:

dict

base_fields = {'date_of_birth': <django.forms.fields.DateField object>, 'destination_address': <django.forms.fields.CharField object>, 'embassy_name': <django.forms.fields.CharField object>, 'nationality': <django.forms.fields.CharField object>, 'passport_name': <django.forms.fields.CharField object>, 'passport_number': <django.forms.fields.CharField object>, 'travel_from': <django.forms.fields.DateField object>, 'travel_until': <django.forms.fields.DateField object>}
declared_fields = {}
property media

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