django_program.registration.models¶
Registration, ticketing, cart, order, and payment models for django-program.
Classes
An optional extra attached to a ticket (e.g. workshop, t-shirt). |
|
A user's shopping cart for a conference. |
|
A single item (ticket or add-on) in a cart. |
|
A store credit that can be applied to future orders. |
|
Records an error that occurred while processing a webhook event. |
|
A completed checkout with billing and payment info. |
|
A snapshot of a purchased item at checkout time. |
|
A payment record against an order. |
|
Maps a Django user to a Stripe customer for a specific conference. |
|
A record of a Stripe webhook event for idempotent processing. |
|
A purchasable ticket category for a conference. |
|
A discount or access code for tickets and add-ons. |
- class django_program.registration.models.AddOn[source]¶
Bases:
ModelAn optional extra attached to a ticket (e.g. workshop, t-shirt).
Add-ons can optionally be restricted to specific ticket types via the
requires_ticket_typesrelation. When that relation is empty the add-on is available to holders of any ticket type.- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- slug¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- description¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- price¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- requires_ticket_types¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- available_from¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- available_until¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- total_quantity¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_active¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- bulk_enabled¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- order¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- bulk_purchases¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- cart_items¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- conference_id¶
- discountforproduct_discounts¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- door_checks¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)¶
- groupmembercondition_discounts¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- includedproductcondition_discounts¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- objects = <django.db.models.manager.Manager object>¶
- order_line_items¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- purchase_order_line_items¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- speakercondition_discounts¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- timeorstocklimitcondition_discounts¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- vouchers¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- class django_program.registration.models.Attendee[source]¶
Bases:
ModelLinks a user to a conference with registration state and check-in tracking.
Unlike
AttendeeProfileBase, this uses aForeignKeyto the user because a single user can attend multiple conferences. Theorderfield is also aForeignKey(not OneToOne) so that replacement/upgrade orders can update the link without constraint violations.- user¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- order¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- access_code¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- checked_in_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- completed_registration¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- badges¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- checkins¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- conference_id¶
- door_checks¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- letter_requests¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- objects = <django.db.models.manager.Manager object>¶
- order_id¶
- redemptions¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- user_id¶
- class django_program.registration.models.AttendeeProfileBase[source]¶
Bases:
ModelAbstract base for attendee profiles.
Projects extend this with custom fields (e.g. dietary restrictions, t-shirt size) by subclassing and pointing
DJANGO_PROGRAM.attendee_profile_modelat the concrete subclass.- user¶
Accessor to the related object on the forward side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Restaurant.placeis aForwardOneToOneDescriptorinstance.
- access_code¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- completed_registration¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)¶
- user_id¶
- class django_program.registration.models.Badge[source]¶
Bases:
ModelA generated badge for a specific attendee.
Tracks the generated file, format, and timestamp so badges can be cached and regenerated on demand.
- class Format[source]¶
Bases:
TextChoicesSupported badge output formats.
- PDF = 'pdf'¶
- PNG = 'png'¶
- __new__(value)¶
- attendee¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- template¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- format¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- file¶
The descriptor for the file attribute on the model instance. Return a FieldFile when accessed so you can write code like:
>>> from myapp.models import MyModel >>> instance = MyModel.objects.get(pk=1) >>> instance.file.size
Assign a file object on assignment so you can do:
>>> with open('/path/to/hello.world') as f: ... instance.file = File(f)
- generated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- attendee_id¶
- get_format_display(*, field=<django.db.models.fields.CharField: format>)¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- template_id¶
- class django_program.registration.models.BadgeTemplate[source]¶
Bases:
ModelConfigurable badge layout template for a conference.
Defines dimensions, visible fields, color scheme, and optional logo for generating attendee badges. Each conference can have multiple templates but only one may be marked as the default.
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- slug¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_default¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- width_mm¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- height_mm¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class BannerPosition[source]¶
Bases:
TextChoicesWhere to place the ticket type banner on the badge.
- BELOW_HEADER = 'below_header'¶
- ABOVE_NAME = 'above_name'¶
- BELOW_NAME = 'below_name'¶
- BOTTOM = 'bottom'¶
- __new__(value)¶
- ticket_banner_position¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- show_name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- show_email¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- show_company¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- show_ticket_type¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- show_qr_code¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- show_conference_name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- background_color¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- text_color¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- accent_color¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- font_name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- font_body¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- logo¶
Just like the FileDescriptor, but for ImageFields. The only difference is assigning the width/height to the width_field/height_field, if appropriate.
- background_image¶
Just like the FileDescriptor, but for ImageFields. The only difference is assigning the width/height to the width_field/height_field, if appropriate.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- badges¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- conference_id¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)¶
- get_ticket_banner_position_display(*, field=<django.db.models.fields.CharField: ticket_banner_position>)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- class django_program.registration.models.Cart[source]¶
Bases:
ModelA user’s shopping cart for a conference.
Carts hold ticket and add-on selections before checkout. They transition through statuses from
OPENtoCHECKED_OUTwhen submitted to checkout and converted to an order (which may still be pending payment), or toEXPIRED/ABANDONEDwhen the session times out.- class Status[source]¶
Bases:
TextChoicesLifecycle states for a shopping cart.
- OPEN = 'open'¶
- CHECKED_OUT = 'checked_out'¶
- EXPIRED = 'expired'¶
- ABANDONED = 'abandoned'¶
- __new__(value)¶
- user¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- status¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- voucher¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- expires_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- conference_id¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)¶
- get_status_display(*, field=<django.db.models.fields.CharField: status>)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- items¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- objects = <django.db.models.manager.Manager object>¶
- user_id¶
- voucher_id¶
- class django_program.registration.models.CartItem[source]¶
Bases:
ModelA single item (ticket or add-on) in a cart.
Each cart item references exactly one of
ticket_typeoraddon, enforced by a database-level check constraint. Theunit_priceandline_totalproperties compute pricing from the referenced item.- cart¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- ticket_type¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- addon¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- quantity¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- addon_id¶
- cart_id¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- ticket_type_id¶
- class django_program.registration.models.CheckIn[source]¶
Bases:
ModelRecords a single check-in event for an attendee at the conference.
Multiple check-ins per attendee are allowed to support re-entry scenarios (e.g. leaving for lunch and returning). Each record captures who performed the check-in and at which station.
- attendee¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- checked_in_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- checked_in_by¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- station¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- note¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- attendee_id¶
- checked_in_by_id¶
- conference_id¶
- get_next_by_checked_in_at(*, field=<django.db.models.fields.DateTimeField: checked_in_at>, is_next=True, **kwargs)¶
- get_previous_by_checked_in_at(*, field=<django.db.models.fields.DateTimeField: checked_in_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- class django_program.registration.models.Credit[source]¶
Bases:
ModelA store credit that can be applied to future orders.
Credits are typically issued as part of a refund workflow. They are tied to a specific conference and user, and can be applied to a new order or left to expire.
- class Status[source]¶
Bases:
TextChoicesLifecycle states for a store credit.
- AVAILABLE = 'available'¶
- APPLIED = 'applied'¶
- EXPIRED = 'expired'¶
- __new__(value)¶
- user¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- amount¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- remaining_amount¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- status¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- applied_to_order¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- source_order¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- note¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- applied_to_order_id¶
- conference_id¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)¶
- get_status_display(*, field=<django.db.models.fields.CharField: status>)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- source_order_id¶
- user_id¶
- class django_program.registration.models.DiscountForCategory[source]¶
Bases:
ConditionBasePercentage discount on all products in specified categories.
Applies a flat percentage reduction to ticket types and/or add-ons for the conference. Does not use
DiscountEffectbecause it uses its own simplified percentage-only calculation with category-level targeting.- percentage¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- apply_to_tickets¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- apply_to_addons¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- start_time¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- end_time¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- limit¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- times_used¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- evaluate(user, conference)[source]¶
Return True if within the time window and stock has not been exhausted.
- calculate_discount(unit_price, quantity)[source]¶
Calculate the percentage discount for the given price and quantity.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- conference_id¶
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- description¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_active¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- priority¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class django_program.registration.models.DiscountForProduct[source]¶
Bases:
ConditionBase,DiscountEffectDirect discount on specific products, optionally time/stock limited.
Unlike other conditions, this evaluates to True for all users as long as the time window and stock limit are satisfied. Use
applicable_ticket_typesandapplicable_addonsto control which products receive the discount.- start_time¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- end_time¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- limit¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- times_used¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- evaluate(user, conference)[source]¶
Return True if within the time window and stock has not been exhausted.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- applicable_addons¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- applicable_ticket_types¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- conference_id¶
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- description¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- discount_type¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- discount_value¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_discount_type_display(*, field=<django.db.models.fields.CharField: discount_type>)¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_active¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- max_quantity¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- priority¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class django_program.registration.models.DoorCheck[source]¶
Bases:
ModelPer-product admission tracking for a specific ticket type or add-on.
Used for checking attendees into sub-events such as tutorials, meals, or social events that require separate admission control beyond the main conference check-in.
- attendee¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- ticket_type¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- addon¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- checked_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- checked_by¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- station¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- addon_id¶
- attendee_id¶
- checked_by_id¶
- conference_id¶
- get_next_by_checked_at(*, field=<django.db.models.fields.DateTimeField: checked_at>, is_next=True, **kwargs)¶
- get_previous_by_checked_at(*, field=<django.db.models.fields.DateTimeField: checked_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- ticket_type_id¶
- class django_program.registration.models.EventProcessingException[source]¶
Bases:
ModelRecords an error that occurred while processing a webhook event.
Captures the full traceback and contextual data so that failed events can be investigated and retried.
- event¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- data¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- message¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- traceback¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- event_id¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- class django_program.registration.models.GroupMemberCondition[source]¶
Bases:
ConditionBase,DiscountEffectApplies to members of specific Django auth groups.
Useful for staff discounts, volunteer pricing, or any role-based discount controlled via Django’s built-in group system.
- groups¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- evaluate(user, conference)[source]¶
Return True if the user belongs to at least one of the configured groups.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- applicable_addons¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- applicable_ticket_types¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- conference_id¶
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- description¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- discount_type¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- discount_value¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_discount_type_display(*, field=<django.db.models.fields.CharField: discount_type>)¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_active¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- max_quantity¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- priority¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class django_program.registration.models.IncludedProductCondition[source]¶
Bases:
ConditionBase,DiscountEffectUnlocks discount on target products when user has purchased enabling products.
For example, purchasing a “Tutorial” ticket could unlock a discount on the “Tutorial Lunch” add-on.
- enabling_ticket_types¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- evaluate(user, conference)[source]¶
Return True if the user has purchased at least one enabling ticket type.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- applicable_addons¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- applicable_ticket_types¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- conference_id¶
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- description¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- discount_type¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- discount_value¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_discount_type_display(*, field=<django.db.models.fields.CharField: discount_type>)¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_active¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- max_quantity¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- priority¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class django_program.registration.models.LetterRequest[source]¶
Bases:
ModelA request for a visa invitation letter from a conference attendee.
Captures passport and travel details needed to produce a formal letter for embassy submission. Progresses through a review workflow from
SUBMITTEDtoSENT(orREJECTED).- class Status[source]¶
Bases:
TextChoicesWorkflow states for a letter request.
- SUBMITTED = 'submitted'¶
- UNDER_REVIEW = 'under_review'¶
- APPROVED = 'approved'¶
- GENERATED = 'generated'¶
- SENT = 'sent'¶
- REJECTED = 'rejected'¶
- __new__(value)¶
- ALLOWED_TRANSITIONS: dict[str, set[str]] = {LetterRequest.Status.APPROVED: {LetterRequest.Status.GENERATED}, LetterRequest.Status.GENERATED: {LetterRequest.Status.SENT}, LetterRequest.Status.SUBMITTED: {LetterRequest.Status.APPROVED, LetterRequest.Status.REJECTED, LetterRequest.Status.UNDER_REVIEW}, LetterRequest.Status.UNDER_REVIEW: {LetterRequest.Status.APPROVED, LetterRequest.Status.REJECTED}}¶
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- user¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- attendee¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- passport_name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- passport_number¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- nationality¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- date_of_birth¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- travel_from¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- travel_until¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- destination_address¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- embassy_name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- status¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- rejection_reason¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- generated_pdf¶
The descriptor for the file attribute on the model instance. Return a FieldFile when accessed so you can write code like:
>>> from myapp.models import MyModel >>> instance = MyModel.objects.get(pk=1) >>> instance.file.size
Assign a file object on assignment so you can do:
>>> with open('/path/to/hello.world') as f: ... instance.file = File(f)
- reviewed_by¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- reviewed_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- sent_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- transition_to(new_status)[source]¶
Transition this request to a new workflow status.
Validates that the transition is allowed before applying it.
- Parameters:
new_status (
str) – The target status value (one ofStatuschoices).- Raises:
ValueError – If the transition from the current status to
new_statusis not permitted.- Return type:
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- attendee_id¶
- conference_id¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_travel_from(*, field=<django.db.models.fields.DateField: travel_from>, is_next=True, **kwargs)¶
- get_next_by_travel_until(*, field=<django.db.models.fields.DateField: travel_until>, is_next=True, **kwargs)¶
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_travel_from(*, field=<django.db.models.fields.DateField: travel_from>, is_next=False, **kwargs)¶
- get_previous_by_travel_until(*, field=<django.db.models.fields.DateField: travel_until>, is_next=False, **kwargs)¶
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)¶
- get_status_display(*, field=<django.db.models.fields.CharField: status>)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- reviewed_by_id¶
- user_id¶
- class django_program.registration.models.Order[source]¶
Bases:
ModelA completed checkout with billing and payment info.
Orders are created when a cart is checked out. They capture a snapshot of the pricing, discounts, and billing details at the time of purchase. The
referencefield holds a unique human-readable order number.- class Status[source]¶
Bases:
TextChoicesLifecycle states for an order.
- PENDING = 'pending'¶
- PAID = 'paid'¶
- REFUNDED = 'refunded'¶
- PARTIALLY_REFUNDED = 'partially_refunded'¶
- CANCELLED = 'cancelled'¶
- __new__(value)¶
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- user¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- status¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- subtotal¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- discount_amount¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- total¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- voucher_code¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- voucher_details¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- billing_name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- billing_email¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- billing_company¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- reference¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- utm_source¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- utm_medium¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- utm_campaign¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- hold_expires_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- applied_credits¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- attendees¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- conference_id¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)¶
- get_status_display(*, field=<django.db.models.fields.CharField: status>)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- issued_credits¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- line_items¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- objects = <django.db.models.manager.Manager object>¶
- payments¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- user_id¶
- class django_program.registration.models.OrderLineItem[source]¶
Bases:
ModelA snapshot of a purchased item at checkout time.
Line items are immutable records of what was purchased, including the price and description at the time of checkout. They may reference the original
TicketTypeorAddOnfor traceability, but those links are optional since the source item could be deleted after the order is placed.- order¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- description¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- quantity¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- unit_price¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- discount_amount¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- line_total¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- ticket_type¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- addon¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- addon_id¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- order_id¶
- redemptions¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- ticket_type_id¶
- class django_program.registration.models.Payment[source]¶
Bases:
ModelA payment record against an order.
Each payment represents a single financial transaction (Stripe charge, complimentary comp, credit application, or manual entry). An order may have multiple payments if it is partially refunded and re-paid.
- class Method[source]¶
Bases:
TextChoicesSupported payment methods.
- STRIPE = 'stripe'¶
- TERMINAL = 'terminal'¶
- COMP = 'comp'¶
- CREDIT = 'credit'¶
- MANUAL = 'manual'¶
- __new__(value)¶
- class Status[source]¶
Bases:
TextChoices- PENDING = 'pending'¶
- PROCESSING = 'processing'¶
- SUCCEEDED = 'succeeded'¶
- FAILED = 'failed'¶
- REFUNDED = 'refunded'¶
- __new__(value)¶
- order¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- method¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- status¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- amount¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stripe_payment_intent_id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stripe_charge_id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- reference¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- note¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_by¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- created_by_id¶
- get_method_display(*, field=<django.db.models.fields.CharField: method>)¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_status_display(*, field=<django.db.models.fields.CharField: status>)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- order_id¶
- terminal_detail¶
Accessor to the related object on the reverse side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Place.restaurantis aReverseOneToOneDescriptorinstance.
- class django_program.registration.models.ProductRedemption[source]¶
Bases:
ModelTracks redemption of a purchased order line item.
Each attendee can redeem a given order line item up to its purchased
quantitytimes. The business-layer limit is enforced byRedemptionService.redeem_product()with row-level locking; no unique constraint exists at the DB level so that quantity > 1 items can produce multiple redemption rows.- attendee¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- order_line_item¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- redeemed_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- redeemed_by¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- note¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- attendee_id¶
- conference_id¶
- get_next_by_redeemed_at(*, field=<django.db.models.fields.DateTimeField: redeemed_at>, is_next=True, **kwargs)¶
- get_previous_by_redeemed_at(*, field=<django.db.models.fields.DateTimeField: redeemed_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- order_line_item_id¶
- redeemed_by_id¶
- class django_program.registration.models.PurchaseOrder[source]¶
Bases:
ModelA corporate purchase order for bulk or invoiced ticket purchases.
Purchase orders exist outside the normal cart/checkout flow and support partial payments over time via wire, ACH, check, or Stripe. The
balance_dueproperty tracks the remaining amount after payments and credit notes.- class Status[source]¶
Bases:
TextChoicesLifecycle states for a purchase order.
- DRAFT = 'draft'¶
- SENT = 'sent'¶
- PARTIALLY_PAID = 'partially_paid'¶
- PAID = 'paid'¶
- OVERPAID = 'overpaid'¶
- CANCELLED = 'cancelled'¶
- __new__(value)¶
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- organization_name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- contact_email¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- contact_name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- billing_address¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- status¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stripe_invoice_id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stripe_invoice_url¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- qbo_invoice_id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- qbo_invoice_url¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- notes¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- reference¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- subtotal¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- total¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_by¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property total_paid: Decimal¶
Return the sum of all recorded payment amounts.
Uses the
_annotated_total_paidannotation when available (set by list views) to avoid per-row aggregate queries.
- property total_credited: Decimal¶
Return the sum of all credit note amounts.
Uses the
_annotated_total_creditedannotation when available (set by list views) to avoid per-row aggregate queries.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- conference_id¶
- created_by_id¶
- credit_notes¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)¶
- get_status_display(*, field=<django.db.models.fields.CharField: status>)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- line_items¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- objects = <django.db.models.manager.Manager object>¶
- payments¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- class django_program.registration.models.PurchaseOrderCreditNote[source]¶
Bases:
ModelA credit note issued against a purchase order.
Reduces the effective balance due on the purchase order. Used for adjustments, corrections, or partial cancellations.
- purchase_order¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- amount¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- reason¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- issued_by¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- issued_by_id¶
- objects = <django.db.models.manager.Manager object>¶
- purchase_order_id¶
- class django_program.registration.models.PurchaseOrderLineItem[source]¶
Bases:
ModelA single line item on a purchase order.
Each line references an optional ticket type or add-on for traceability, but the description and pricing are snapshotted at creation time.
- purchase_order¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- description¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- quantity¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- unit_price¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- line_total¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- ticket_type¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- addon¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- addon_id¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- purchase_order_id¶
- ticket_type_id¶
- class django_program.registration.models.PurchaseOrderPayment[source]¶
Bases:
ModelA payment recorded against a purchase order.
Tracks individual payments received via wire transfer, ACH, check, Stripe, or other methods. Multiple payments can be recorded as partial payments arrive.
- class Method[source]¶
Bases:
TextChoicesSupported payment methods for purchase orders.
- WIRE = 'wire'¶
- ACH = 'ach'¶
- CHECK = 'check'¶
- STRIPE = 'stripe'¶
- OTHER = 'other'¶
- __new__(value)¶
- purchase_order¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- amount¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- reference¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- method¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- entered_by¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- payment_date¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- note¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- entered_by_id¶
- get_method_display(*, field=<django.db.models.fields.CharField: method>)¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_payment_date(*, field=<django.db.models.fields.DateField: payment_date>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_payment_date(*, field=<django.db.models.fields.DateField: payment_date>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- purchase_order_id¶
- class django_program.registration.models.SpeakerCondition[source]¶
Bases:
ConditionBase,DiscountEffectAuto-applies to users linked to a Pretalx Speaker.
Checks whether the user has a Speaker record in the pretalx app for the same conference, optionally filtering by presenter/copresenter role.
- is_presenter¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_copresenter¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- evaluate(user, conference)[source]¶
Return True if the user is linked to a Speaker for this conference.
Pretalx has no explicit primary/copresenter role, so any linked speaker qualifies when either flag is set. When both flags are True, any speaker qualifies. When only
is_presenteris True, any speaker on at least one talk qualifies. When onlyis_copresenteris True, the speaker must appear on a talk with at least one other speaker.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- applicable_addons¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- applicable_ticket_types¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- conference_id¶
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- description¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- discount_type¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- discount_value¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_discount_type_display(*, field=<django.db.models.fields.CharField: discount_type>)¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_active¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- max_quantity¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- priority¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class django_program.registration.models.StripeCustomer[source]¶
Bases:
ModelMaps a Django user to a Stripe customer for a specific conference.
Each user gets a separate Stripe customer per conference since each conference may use a different Stripe account.
- user¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- stripe_customer_id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- conference_id¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- user_id¶
- class django_program.registration.models.StripeEvent[source]¶
Bases:
ModelA record of a Stripe webhook event for idempotent processing.
Stores the full event payload and tracks whether the event has been successfully processed by the webhook handler.
- stripe_id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- kind¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- livemode¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- payload¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- customer_id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- processed¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- api_version¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- processing_exceptions¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- class django_program.registration.models.TerminalPayment[source]¶
Bases:
ModelRecords an in-person Stripe Terminal payment at the registration desk.
Extends the payment tracking with terminal-specific fields for reader identification, pre-authorization state, and capture lifecycle.
- class CaptureStatus[source]¶
Bases:
TextChoicesLifecycle states for a terminal payment capture.
- AUTHORIZED = 'authorized'¶
- CAPTURED = 'captured'¶
- CANCELLED = 'cancelled'¶
- FAILED = 'failed'¶
- __new__(value)¶
- payment¶
Accessor to the related object on the forward side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Restaurant.placeis aForwardOneToOneDescriptorinstance.
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- terminal_id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- reader_id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- payment_intent_id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- capture_status¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- captured_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- cancelled_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- card_brand¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- card_last4¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- receipt_url¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- conference_id¶
- get_capture_status_display(*, field=<django.db.models.fields.CharField: capture_status>)¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- payment_id¶
- class django_program.registration.models.TicketType[source]¶
Bases:
ModelA purchasable ticket category for a conference.
Defines a class of ticket (e.g. “Early Bird”, “Student”, “Corporate”) with pricing, availability windows, and optional quantity limits. Ticket types flagged with
requires_voucherare hidden from the public storefront until unlocked by a matching voucher code.- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- slug¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- description¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- price¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- available_from¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- available_until¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- total_quantity¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- limit_per_user¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- requires_voucher¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_active¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- bulk_enabled¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- order¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property remaining_quantity: int | None¶
Return the number of tickets still available for purchase.
Counts tickets in paid/partially-refunded orders plus pending orders with an active inventory hold (
hold_expires_atin the future).- Returns:
The remaining count, or
Noneif this ticket type has unlimited quantity (total_quantity == 0).
- property is_available: bool¶
Check whether this ticket type can currently be purchased.
A ticket is available when all of the following are true:
is_activeisTrueThe current time is within the
available_from/available_untilwindow (if set)There is remaining quantity (or quantity is unlimited)
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- available_addons¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- bulk_purchases¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- cart_items¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- conference_id¶
- discountforproduct_discounts¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- door_checks¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- enabling_conditions¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)¶
- groupmembercondition_discounts¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- includedproductcondition_discounts¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- objects = <django.db.models.manager.Manager object>¶
- order_line_items¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- purchase_order_line_items¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- speakercondition_discounts¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- timeorstocklimitcondition_discounts¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- vouchers¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- class django_program.registration.models.TimeOrStockLimitCondition[source]¶
Bases:
ConditionBase,DiscountEffectCondition met when within a time window and/or stock limit.
Use this for early-bird discounts, flash sales, or any promotion with a defined start/end time and optional usage cap.
- start_time¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- end_time¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- limit¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- times_used¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- evaluate(user, conference)[source]¶
Return True if within the time window and stock has not been exhausted.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- applicable_addons¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- applicable_ticket_types¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- conference_id¶
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- description¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- discount_type¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- discount_value¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_discount_type_display(*, field=<django.db.models.fields.CharField: discount_type>)¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_active¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- max_quantity¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- priority¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class django_program.registration.models.Voucher[source]¶
Bases:
ModelA discount or access code for tickets and add-ons.
Vouchers can provide a percentage discount, a fixed amount off, or full complimentary access (100% off). They can also unlock hidden ticket types that require a voucher to purchase.
- class VoucherType[source]¶
Bases:
TextChoicesThe type of discount a voucher provides.
- COMP = 'comp'¶
- PERCENTAGE = 'percentage'¶
- FIXED_AMOUNT = 'fixed_amount'¶
- __new__(value)¶
- conference¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- code¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- voucher_type¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- discount_value¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- applicable_ticket_types¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- applicable_addons¶
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- max_uses¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- times_used¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- valid_from¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- valid_until¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_active¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property is_valid: bool¶
Check whether this voucher can currently be redeemed.
A voucher is valid when it is active, has remaining uses, and the current time falls within the optional validity window.
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- bulk_purchase_links¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- carts¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- conference_id¶
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)¶
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)¶
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)¶
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)¶
- get_voucher_type_display(*, field=<django.db.models.fields.CharField: voucher_type>)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶