squaresdb.gate.models module¶
- class squaresdb.gate.models.Attendee(id, person, dance, time, payment)[source]¶
Bases:
Model- Parameters:
id (BigAutoField) – Primary key: ID
time (DateTimeField) – Time
Relationship fields:
- Parameters:
person (
ForeignKeytoPerson) – Person (related name:attendee)dance (
ForeignKeytoDance) – Dance (related name:attendee)payment (
ForeignKeytoPayment) – Payment (related name:attendee)
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- exception NotUpdated¶
Bases:
ObjectNotUpdated,DatabaseError
- dance¶
Type:
ForeignKeytoDanceDance (related name:
attendee)
- get_next_by_time(*, field=<django.db.models.DateTimeField: time>, is_next=True, **kwargs)¶
Finds next instance based on
time. Seeget_next_by_FOO()for more information.
- get_previous_by_time(*, field=<django.db.models.DateTimeField: time>, is_next=False, **kwargs)¶
Finds previous instance based on
time. Seeget_previous_by_FOO()for more information.
- id¶
Type:
BigAutoFieldPrimary key: ID
- objects = <django.db.models.Manager object>¶
- payment¶
Type:
ForeignKeytoPaymentPayment (related name:
attendee)
- person¶
Type:
ForeignKeytoPersonPerson (related name:
attendee)
- time¶
Type:
DateTimeFieldTime
- class squaresdb.gate.models.Dance(id, time, period, price_scheme)[source]¶
Bases:
Model- Parameters:
id (BigAutoField) – Primary key: ID
time (DateTimeField) – Time
Relationship fields:
- Parameters:
period (
ForeignKeytoSubscriptionPeriod) – Period (related name:dance)price_scheme (
ForeignKeytoDancePriceScheme) – Price scheme (related name:dance)
Reverse relationships:
- Parameters:
payment (Reverse
ForeignKeyfromPayment) – All payments of this dance (related name ofat_dance)dancepayment (Reverse
ForeignKeyfromDancePayment) – All dance payments of this dance (related name offor_dance)attendee (Reverse
ForeignKeyfromAttendee) – All attendees of this dance (related name ofdance)
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- exception NotUpdated¶
Bases:
ObjectNotUpdated,DatabaseError
- attendee_set¶
Type: Reverse
ForeignKeyfromAttendeeAll attendees of this dance (related name of
dance)
- dancepayment_set¶
Type: Reverse
ForeignKeyfromDancePaymentAll dance payments of this dance (related name of
for_dance)
- get_next_by_time(*, field=<django.db.models.DateTimeField: time>, is_next=True, **kwargs)¶
Finds next instance based on
time. Seeget_next_by_FOO()for more information.
- get_previous_by_time(*, field=<django.db.models.DateTimeField: time>, is_next=False, **kwargs)¶
Finds previous instance based on
time. Seeget_previous_by_FOO()for more information.
- id¶
Type:
BigAutoFieldPrimary key: ID
- objects = <django.db.models.Manager object>¶
- payment_set¶
Type: Reverse
ForeignKeyfromPaymentAll payments of this dance (related name of
at_dance)
- period¶
Type:
ForeignKeytoSubscriptionPeriodPeriod (related name:
dance)
- price_scheme¶
Type:
ForeignKeytoDancePriceSchemePrice scheme (related name:
dance)
- price_scheme_id¶
Internal field, use
price_schemeinstead.
- time¶
Type:
DateTimeFieldTime
- class squaresdb.gate.models.DancePayment(id, person, at_dance, time, payment_type, amount, fee_cat, notes, payment_ptr, for_dance)[source]¶
Bases:
Payment- Parameters:
id (BigAutoField) – Primary key: ID
time (DateTimeField) – Time
amount (DecimalField) – Amount
notes (TextField) – Notes
Relationship fields:
- Parameters:
person (
ForeignKeytoPerson) – Person (related name:payment)at_dance (
ForeignKeytoDance) – At dance (related name:payment)payment_type (
ForeignKeytoPaymentMethod) – Payment type (related name:payment)fee_cat (
ForeignKeytoFeeCategory) – Fee cat (related name:payment)payment_ptr (
OneToOneFieldtoPayment) – Primary key: Payment ptr (related name:dancepayment)for_dance (
ForeignKeytoDance) – For dance (related name:dancepayment)
Reverse relationships:
- Parameters:
attendee (Reverse
ForeignKeyfromAttendee) – All attendees of this payment (related name ofpayment)
- exception DoesNotExist¶
Bases:
DoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- exception NotUpdated¶
Bases:
NotUpdated
- for_dance¶
Type:
ForeignKeytoDanceFor dance (related name:
dancepayment)
- payment_ptr¶
Type:
OneToOneFieldtoPaymentPrimary key: Payment ptr (related name:
dancepayment)
- payment_ptr_id¶
Internal field, use
payment_ptrinstead.
- class squaresdb.gate.models.DancePrice(id, price_scheme, fee_cat, low, high)[source]¶
Bases:
Model- Parameters:
id (BigAutoField) – Primary key: ID
low (IntegerField) – Low
high (IntegerField) – High
Relationship fields:
- Parameters:
price_scheme (
ForeignKeytoDancePriceScheme) – Price scheme (related name:danceprice)fee_cat (
ForeignKeytoFeeCategory) – Fee cat (related name:danceprice)
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- exception NotUpdated¶
Bases:
ObjectNotUpdated,DatabaseError
- fee_cat¶
Type:
ForeignKeytoFeeCategoryFee cat (related name:
danceprice)
- high¶
Type:
IntegerFieldHigh
- id¶
Type:
BigAutoFieldPrimary key: ID
- low¶
Type:
IntegerFieldLow
- objects = <django.db.models.Manager object>¶
- price_scheme¶
Type:
ForeignKeytoDancePriceSchemePrice scheme (related name:
danceprice)
- price_scheme_id¶
Internal field, use
price_schemeinstead.
- class squaresdb.gate.models.DancePriceScheme(id, name, notes, active)[source]¶
Bases:
Model- Parameters:
id (BigAutoField) – Primary key: ID
name (CharField) – Name
notes (TextField) – Notes
active (BooleanField) – Active
Reverse relationships:
- Parameters:
danceprice (Reverse
ForeignKeyfromDancePrice) – All dance prices of this dance price scheme (related name ofprice_scheme)dance (Reverse
ForeignKeyfromDance) – All dances of this dance price scheme (related name ofprice_scheme)
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- exception NotUpdated¶
Bases:
ObjectNotUpdated,DatabaseError
- active¶
Type:
BooleanFieldActive
- dance_set¶
Type: Reverse
ForeignKeyfromDanceAll dances of this dance price scheme (related name of
price_scheme)
- danceprice_set¶
Type: Reverse
ForeignKeyfromDancePriceAll dance prices of this dance price scheme (related name of
price_scheme)
- id¶
Type:
BigAutoFieldPrimary key: ID
- objects = <django.db.models.Manager object>¶
- class squaresdb.gate.models.Payment(id, person, at_dance, time, payment_type, amount, fee_cat, notes)[source]¶
Bases:
Model- Parameters:
id (BigAutoField) – Primary key: ID
time (DateTimeField) – Time
amount (DecimalField) – Amount
notes (TextField) – Notes
Relationship fields:
- Parameters:
person (
ForeignKeytoPerson) – Person (related name:payment)at_dance (
ForeignKeytoDance) – At dance (related name:payment)payment_type (
ForeignKeytoPaymentMethod) – Payment type (related name:payment)fee_cat (
ForeignKeytoFeeCategory) – Fee cat (related name:payment)
Reverse relationships:
- Parameters:
subscriptionpayment (Reverse
OneToOneFieldfromSubscriptionPayment) – The subscription payment of this payment (related name ofpayment_ptr)dancepayment (Reverse
OneToOneFieldfromDancePayment) – The dance payment of this payment (related name ofpayment_ptr)attendee (Reverse
ForeignKeyfromAttendee) – All attendees of this payment (related name ofpayment)
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- exception NotUpdated¶
Bases:
ObjectNotUpdated,DatabaseError
- amount¶
Type:
DecimalFieldAmount
- at_dance¶
Type:
ForeignKeytoDanceAt dance (related name:
payment)
- attendee_set¶
Type: Reverse
ForeignKeyfromAttendeeAll attendees of this payment (related name of
payment)
- dancepayment¶
Type: Reverse
OneToOneFieldfromDancePaymentThe dance payment of this payment (related name of
payment_ptr)
- fee_cat¶
Type:
ForeignKeytoFeeCategoryFee cat (related name:
payment)
- get_next_by_time(*, field=<django.db.models.DateTimeField: time>, is_next=True, **kwargs)¶
Finds next instance based on
time. Seeget_next_by_FOO()for more information.
- get_previous_by_time(*, field=<django.db.models.DateTimeField: time>, is_next=False, **kwargs)¶
Finds previous instance based on
time. Seeget_previous_by_FOO()for more information.
- id¶
Type:
BigAutoFieldPrimary key: ID
- objects = <django.db.models.Manager object>¶
- payment_type¶
Type:
ForeignKeytoPaymentMethodPayment type (related name:
payment)
- payment_type_id¶
Internal field, use
payment_typeinstead.
- person¶
Type:
ForeignKeytoPersonPerson (related name:
payment)
- subscriptionpayment¶
Type: Reverse
OneToOneFieldfromSubscriptionPaymentThe subscription payment of this payment (related name of
payment_ptr)
- time¶
Type:
DateTimeFieldTime
- class squaresdb.gate.models.PaymentMethod(slug, name, in_gate)[source]¶
Bases:
Model- Parameters:
slug (SlugField) – Primary key: Slug
name (CharField) – Name
in_gate (BooleanField) – In gate
Reverse relationships:
- Parameters:
payment (Reverse
ForeignKeyfromPayment) – All payments of this payment method (related name ofpayment_type)
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- exception NotUpdated¶
Bases:
ObjectNotUpdated,DatabaseError
- in_gate¶
Type:
BooleanFieldIn gate
- objects = <django.db.models.Manager object>¶
- payment_set¶
Type: Reverse
ForeignKeyfromPaymentAll payments of this payment method (related name of
payment_type)
- class squaresdb.gate.models.SubscriptionLineItem(id, transaction, amount, account_name, label, notes, lineitem_ptr, sub_period, subscriber_name, person)[source]¶
Bases:
LineItem- Parameters:
id (BigAutoField) – Primary key: ID
amount (DecimalField) – Amount
account_name (CharField) – Account name
label (CharField) – Label
notes (TextField) – Notes
subscriber_name (CharField) – Subscriber name
Relationship fields:
- Parameters:
transaction (
ForeignKeytoTransaction) – Transaction (related name:lineitem)lineitem_ptr (
OneToOneFieldtoLineItem) – Primary key: Lineitem ptr (related name:subscriptionlineitem)sub_period (
ForeignKeytoSubscriptionPeriod) – Sub period (related name:subscriptionlineitem)person (
ForeignKeytoPerson) – Person (related name:subscriptionlineitem)
- exception DoesNotExist¶
Bases:
DoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- exception NotUpdated¶
Bases:
NotUpdated
- lineitem_ptr¶
Type:
OneToOneFieldtoLineItemPrimary key: Lineitem ptr (related name:
subscriptionlineitem)
- lineitem_ptr_id¶
Internal field, use
lineitem_ptrinstead.
- person¶
Type:
ForeignKeytoPersonPerson (related name:
subscriptionlineitem)
- sub_period¶
Type:
ForeignKeytoSubscriptionPeriodSub period (related name:
subscriptionlineitem)
- sub_period_id¶
Internal field, use
sub_periodinstead.
- class squaresdb.gate.models.SubscriptionPayment(id, person, at_dance, time, payment_type, amount, fee_cat, notes, payment_ptr)[source]¶
Bases:
Payment- Parameters:
id (BigAutoField) – Primary key: ID
time (DateTimeField) – Time
amount (DecimalField) – Amount
notes (TextField) – Notes
Relationship fields:
- Parameters:
person (
ForeignKeytoPerson) – Person (related name:payment)at_dance (
ForeignKeytoDance) – At dance (related name:payment)payment_type (
ForeignKeytoPaymentMethod) – Payment type (related name:payment)fee_cat (
ForeignKeytoFeeCategory) – Fee cat (related name:payment)payment_ptr (
OneToOneFieldtoPayment) – Primary key: Payment ptr (related name:subscriptionpayment)periods (
ManyToManyFieldtoSubscriptionPeriod) – Periods (related name:subscriptionpayment)
Reverse relationships:
- Parameters:
attendee (Reverse
ForeignKeyfromAttendee) – All attendees of this payment (related name ofpayment)
- exception DoesNotExist¶
Bases:
DoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- exception NotUpdated¶
Bases:
NotUpdated
- payment_ptr¶
Type:
OneToOneFieldtoPaymentPrimary key: Payment ptr (related name:
subscriptionpayment)
- payment_ptr_id¶
Internal field, use
payment_ptrinstead.
- periods¶
Type:
ManyToManyFieldtoSubscriptionPeriodPeriods (related name:
subscriptionpayment)
- class squaresdb.gate.models.SubscriptionPeriod(slug, name, start_date, end_date)[source]¶
Bases:
Model- Parameters:
Reverse relationships:
- Parameters:
subscriptionperiodprice (Reverse
ForeignKeyfromSubscriptionPeriodPrice) – All subscription period prices of this subscription period (related name ofperiod)dance (Reverse
ForeignKeyfromDance) – All dances of this subscription period (related name ofperiod)subscriptionpayment (Reverse
ManyToManyFieldfromSubscriptionPayment) – All subscription payments of this subscription period (related name ofperiods)subscriptionlineitem (Reverse
ForeignKeyfromSubscriptionLineItem) – All subscription line items of this subscription period (related name ofsub_period)
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- exception NotUpdated¶
Bases:
ObjectNotUpdated,DatabaseError
- dance_set¶
Type: Reverse
ForeignKeyfromDanceAll dances of this subscription period (related name of
period)
- get_next_by_end_date(*, field=<django.db.models.DateField: end_date>, is_next=True, **kwargs)¶
Finds next instance based on
end_date. Seeget_next_by_FOO()for more information.
- get_next_by_start_date(*, field=<django.db.models.DateField: start_date>, is_next=True, **kwargs)¶
Finds next instance based on
start_date. Seeget_next_by_FOO()for more information.
- get_previous_by_end_date(*, field=<django.db.models.DateField: end_date>, is_next=False, **kwargs)¶
Finds previous instance based on
end_date. Seeget_previous_by_FOO()for more information.
- get_previous_by_start_date(*, field=<django.db.models.DateField: start_date>, is_next=False, **kwargs)¶
Finds previous instance based on
start_date. Seeget_previous_by_FOO()for more information.
- objects = <django.db.models.Manager object>¶
- subscriptionlineitem_set¶
Type: Reverse
ForeignKeyfromSubscriptionLineItemAll subscription line items of this subscription period (related name of
sub_period)
- subscriptionpayment_set¶
Type: Reverse
ManyToManyFieldfromSubscriptionPaymentAll subscription payments of this subscription period (related name of
periods)
- subscriptionperiodprice_set¶
Type: Reverse
ForeignKeyfromSubscriptionPeriodPriceAll subscription period prices of this subscription period (related name of
period)
- class squaresdb.gate.models.SubscriptionPeriodPrice(id, period, fee_cat, low, high)[source]¶
Bases:
Model- Parameters:
id (BigAutoField) – Primary key: ID
low (IntegerField) – Low
high (IntegerField) – High
Relationship fields:
- Parameters:
period (
ForeignKeytoSubscriptionPeriod) – Period (related name:subscriptionperiodprice)fee_cat (
ForeignKeytoFeeCategory) – Fee cat (related name:subscriptionperiodprice)
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- exception NotUpdated¶
Bases:
ObjectNotUpdated,DatabaseError
- fee_cat¶
Type:
ForeignKeytoFeeCategoryFee cat (related name:
subscriptionperiodprice)
- high¶
Type:
IntegerFieldHigh
- id¶
Type:
BigAutoFieldPrimary key: ID
- low¶
Type:
IntegerFieldLow
- objects = <django.db.models.Manager object>¶
- period¶
Type:
ForeignKeytoSubscriptionPeriodPeriod (related name:
subscriptionperiodprice)