Models documentation¶
Gestion app models¶
-
class
gestion.models.
Consumption
(*args, **kwargs)¶ Stores total consumptions.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
customer
¶ Client (
django.contrib.auth.models.User
).
-
customer_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history
= <simple_history.manager.HistoryManager object>¶
-
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>¶
-
product
¶ A
gestion.models.Product
instance.
-
product_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
quantity
¶ The total number of
gestion.models.Consumption.product
consumed by thegestion.models.Consumption.consumer
.
-
save_without_historical_record
(*args, **kwargs)¶ Save model without saving a historical record
Make sure you know what you’re doing before you use this method.
-
exception
-
class
gestion.models.
ConsumptionHistory
(*args, **kwargs)¶ Stores consumption history related to Product
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
amount
¶ Price of the purchase.
-
coopeman
¶ Coopeman (:class:django.contrib.auth.models.User`) who collected the money.
-
coopeman_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
customer
¶ Client (
django.contrib.auth.models.User
).
-
customer_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
date
¶ Date of the purhcase.
-
get_next_by_date
(*, field=<django.db.models.fields.DateTimeField: date>, is_next=True, **kwargs)¶
-
get_previous_by_date
(*, field=<django.db.models.fields.DateTimeField: date>, is_next=False, **kwargs)¶
-
history
= <simple_history.manager.HistoryManager object>¶
-
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>¶
-
paymentMethod
¶ Payment Method
of the product purchased.
-
paymentMethod_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
product
¶ gestion.models.product
purchased.
-
product_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
quantity
¶ Quantity of
gestion.models.ConsumptionHistory.product
taken.
-
save_without_historical_record
(*args, **kwargs)¶ Save model without saving a historical record
Make sure you know what you’re doing before you use this method.
-
exception
-
class
gestion.models.
HistoricalConsumption
(id, quantity, customer, product, history_id, history_change_reason, history_date, history_user, history_type)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
customer
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
customer_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_history_type_display
(*, field=<django.db.models.fields.CharField: history_type>)¶
-
get_next_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)¶
-
get_previous_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)¶
-
history_change_reason
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_object
¶
-
history_type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_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.parent
is aForwardManyToOneDescriptor
instance.
-
history_user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instance
¶
-
instance_type
¶ alias of
Consumption
-
next_record
¶ Get the next history record for the instance. None if last.
-
objects
= <django.db.models.manager.Manager object>¶
-
prev_record
¶ Get the previous history record for the instance. None if first.
-
product
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
product_id
¶ 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.
-
revert_url
()¶ URL for this change in the default admin site.
-
exception
-
class
gestion.models.
HistoricalConsumptionHistory
(id, quantity, date, amount, customer, paymentMethod, product, coopeman, history_id, history_change_reason, history_date, history_user, history_type)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
amount
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
coopeman
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
coopeman_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
customer
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
customer_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_history_type_display
(*, field=<django.db.models.fields.CharField: history_type>)¶
-
get_next_by_date
(*, field=<django.db.models.fields.DateTimeField: date>, is_next=True, **kwargs)¶
-
get_next_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)¶
-
get_previous_by_date
(*, field=<django.db.models.fields.DateTimeField: date>, is_next=False, **kwargs)¶
-
get_previous_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)¶
-
history_change_reason
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_object
¶
-
history_type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_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.parent
is aForwardManyToOneDescriptor
instance.
-
history_user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instance
¶
-
instance_type
¶ alias of
ConsumptionHistory
-
next_record
¶ Get the next history record for the instance. None if last.
-
objects
= <django.db.models.manager.Manager object>¶
-
paymentMethod
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
paymentMethod_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
prev_record
¶ Get the previous history record for the instance. None if first.
-
product
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
product_id
¶ 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.
-
revert_url
()¶ URL for this change in the default admin site.
-
exception
-
class
gestion.models.
HistoricalKeg
(id, name, stockHold, barcode, amount, capacity, is_active, pinte, demi, galopin, history_id, history_change_reason, history_date, history_user, history_type)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
amount
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
barcode
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
capacity
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
demi
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
demi_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
galopin
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
galopin_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_history_type_display
(*, field=<django.db.models.fields.CharField: history_type>)¶
-
get_next_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)¶
-
get_previous_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)¶
-
history_change_reason
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_object
¶
-
history_type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_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.parent
is aForwardManyToOneDescriptor
instance.
-
history_user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instance
¶
-
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.
-
next_record
¶ Get the next history record for the instance. None if last.
-
objects
= <django.db.models.manager.Manager object>¶
-
pinte
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
pinte_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
prev_record
¶ Get the previous history record for the instance. None if first.
-
revert_url
()¶ URL for this change in the default admin site.
-
stockHold
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
gestion.models.
HistoricalKegHistory
(id, openingDate, quantitySold, amountSold, closingDate, isCurrentKegHistory, keg, history_id, history_change_reason, history_date, history_user, history_type)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
amountSold
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
closingDate
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_history_type_display
(*, field=<django.db.models.fields.CharField: history_type>)¶
-
get_next_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)¶
-
get_next_by_openingDate
(*, field=<django.db.models.fields.DateTimeField: openingDate>, is_next=True, **kwargs)¶
-
get_previous_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)¶
-
get_previous_by_openingDate
(*, field=<django.db.models.fields.DateTimeField: openingDate>, is_next=False, **kwargs)¶
-
history_change_reason
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_object
¶
-
history_type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_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.parent
is aForwardManyToOneDescriptor
instance.
-
history_user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instance
¶
-
instance_type
¶ alias of
KegHistory
-
isCurrentKegHistory
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
keg
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
keg_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
next_record
¶ Get the next history record for the instance. None if last.
-
objects
= <django.db.models.manager.Manager object>¶
-
openingDate
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
prev_record
¶ Get the previous history record for the instance. None if first.
-
quantitySold
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
revert_url
()¶ URL for this change in the default admin site.
-
exception
-
class
gestion.models.
HistoricalMenu
(id, name, amount, barcode, is_active, history_id, history_change_reason, history_date, history_user, history_type)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
amount
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
barcode
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_history_type_display
(*, field=<django.db.models.fields.CharField: history_type>)¶
-
get_next_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)¶
-
get_previous_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)¶
-
history_change_reason
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_object
¶
-
history_type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_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.parent
is aForwardManyToOneDescriptor
instance.
-
history_user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instance
¶
-
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.
-
next_record
¶ Get the next history record for the instance. None if last.
-
objects
= <django.db.models.manager.Manager object>¶
-
prev_record
¶ Get the previous history record for the instance. None if first.
-
revert_url
()¶ URL for this change in the default admin site.
-
exception
-
class
gestion.models.
HistoricalMenuHistory
(id, quantity, date, amount, customer, paymentMethod, menu, coopeman, history_id, history_change_reason, history_date, history_user, history_type)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
amount
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
coopeman
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
coopeman_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
customer
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
customer_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_history_type_display
(*, field=<django.db.models.fields.CharField: history_type>)¶
-
get_next_by_date
(*, field=<django.db.models.fields.DateTimeField: date>, is_next=True, **kwargs)¶
-
get_next_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)¶
-
get_previous_by_date
(*, field=<django.db.models.fields.DateTimeField: date>, is_next=False, **kwargs)¶
-
get_previous_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)¶
-
history_change_reason
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_object
¶
-
history_type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_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.parent
is aForwardManyToOneDescriptor
instance.
-
history_user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instance
¶
-
instance_type
¶ alias of
MenuHistory
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.parent
is aForwardManyToOneDescriptor
instance.
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
next_record
¶ Get the next history record for the instance. None if last.
-
objects
= <django.db.models.manager.Manager object>¶
-
paymentMethod
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
paymentMethod_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
prev_record
¶ Get the previous history record for the instance. None if first.
-
quantity
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
revert_url
()¶ URL for this change in the default admin site.
-
exception
-
class
gestion.models.
HistoricalPinte
(id, last_update_date, current_owner, previous_owner, history_id, history_change_reason, history_date, history_user, history_type)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
current_owner
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
current_owner_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_history_type_display
(*, field=<django.db.models.fields.CharField: history_type>)¶
-
get_next_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)¶
-
get_next_by_last_update_date
(*, field=<django.db.models.fields.DateTimeField: last_update_date>, is_next=True, **kwargs)¶
-
get_previous_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)¶
-
get_previous_by_last_update_date
(*, field=<django.db.models.fields.DateTimeField: last_update_date>, is_next=False, **kwargs)¶
-
history_change_reason
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_object
¶
-
history_type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_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.parent
is aForwardManyToOneDescriptor
instance.
-
history_user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instance
¶
-
last_update_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
next_record
¶ Get the next history record for the instance. None if last.
-
objects
= <django.db.models.manager.Manager object>¶
-
prev_record
¶ Get the previous history record for the instance. None if first.
-
previous_owner
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
previous_owner_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
revert_url
()¶ URL for this change in the default admin site.
-
exception
-
class
gestion.models.
HistoricalProduct
(id, name, amount, stockHold, stockBar, barcode, category, needQuantityButton, is_active, volume, deg, adherentRequired, showingMultiplier, history_id, history_change_reason, history_date, history_user, history_type)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
adherentRequired
¶ 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.
-
barcode
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
category
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
deg
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_category_display
(*, field=<django.db.models.fields.CharField: category>)¶
-
get_history_type_display
(*, field=<django.db.models.fields.CharField: history_type>)¶
-
get_next_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)¶
-
get_previous_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)¶
-
history_change_reason
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_object
¶
-
history_type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_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.parent
is aForwardManyToOneDescriptor
instance.
-
history_user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instance
¶
-
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.
-
needQuantityButton
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
next_record
¶ Get the next history record for the instance. None if last.
-
objects
= <django.db.models.manager.Manager object>¶
-
prev_record
¶ Get the previous history record for the instance. None if first.
-
revert_url
()¶ URL for this change in the default admin site.
-
showingMultiplier
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
stockBar
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
stockHold
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
volume
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
gestion.models.
HistoricalRefund
(id, date, amount, customer, coopeman, history_id, history_change_reason, history_date, history_user, history_type)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
amount
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
coopeman
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
coopeman_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
customer
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
customer_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_history_type_display
(*, field=<django.db.models.fields.CharField: history_type>)¶
-
get_next_by_date
(*, field=<django.db.models.fields.DateTimeField: date>, is_next=True, **kwargs)¶
-
get_next_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)¶
-
get_previous_by_date
(*, field=<django.db.models.fields.DateTimeField: date>, is_next=False, **kwargs)¶
-
get_previous_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)¶
-
history_change_reason
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_object
¶
-
history_type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_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.parent
is aForwardManyToOneDescriptor
instance.
-
history_user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instance
¶
-
next_record
¶ Get the next history record for the instance. None if last.
-
objects
= <django.db.models.manager.Manager object>¶
-
prev_record
¶ Get the previous history record for the instance. None if first.
-
revert_url
()¶ URL for this change in the default admin site.
-
exception
-
class
gestion.models.
HistoricalReload
(id, amount, date, customer, PaymentMethod, coopeman, history_id, history_change_reason, history_date, history_user, history_type)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
PaymentMethod
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
PaymentMethod_id
¶ 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.
-
coopeman
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
coopeman_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
customer
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
customer_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_history_type_display
(*, field=<django.db.models.fields.CharField: history_type>)¶
-
get_next_by_date
(*, field=<django.db.models.fields.DateTimeField: date>, is_next=True, **kwargs)¶
-
get_next_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)¶
-
get_previous_by_date
(*, field=<django.db.models.fields.DateTimeField: date>, is_next=False, **kwargs)¶
-
get_previous_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)¶
-
history_change_reason
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_object
¶
-
history_type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_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.parent
is aForwardManyToOneDescriptor
instance.
-
history_user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instance
¶
-
next_record
¶ Get the next history record for the instance. None if last.
-
objects
= <django.db.models.manager.Manager object>¶
-
prev_record
¶ Get the previous history record for the instance. None if first.
-
revert_url
()¶ URL for this change in the default admin site.
-
exception
-
class
gestion.models.
Keg
(*args, **kwargs)¶ Stores a keg.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
amount
¶ The price of the keg.
-
barcode
¶ The barcode of the keg.
-
capacity
¶ The capacity, in liters, of the keg.
-
demi_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
galopin_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history
= <simple_history.manager.HistoryManager object>¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
keghistory_set
¶ 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.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
name
¶ The name of the keg.
-
objects
= <django.db.models.manager.Manager object>¶
-
pinte_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
save_without_historical_record
(*args, **kwargs)¶ Save model without saving a historical record
Make sure you know what you’re doing before you use this method.
-
stockHold
¶ The number of this keg in the hold.
-
exception
-
class
gestion.models.
KegHistory
(*args, **kwargs)¶ Stores a keg history, related to
Keg
.-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
amountSold
¶ The quantity, in euros, sold.
-
closingDate
¶ The date when the keg was closed
-
get_next_by_openingDate
(*, field=<django.db.models.fields.DateTimeField: openingDate>, is_next=True, **kwargs)¶
-
get_previous_by_openingDate
(*, field=<django.db.models.fields.DateTimeField: openingDate>, is_next=False, **kwargs)¶
-
history
= <simple_history.manager.HistoryManager object>¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
keg_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>¶
-
openingDate
¶ The date when the keg was opened.
-
quantitySold
¶ The quantity, in liters, sold.
-
save_without_historical_record
(*args, **kwargs)¶ Save model without saving a historical record
Make sure you know what you’re doing before you use this method.
-
exception
-
class
gestion.models.
Menu
(*args, **kwargs)¶ Stores menus.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
amount
¶ Price of the menu.
-
barcode
¶ Barcode of the menu.
-
history
= <simple_history.manager.HistoryManager object>¶
-
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
¶ If True, the menu will be displayed on the
gestion.views.manage()
view
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.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
name
¶ Name of the menu.
-
objects
= <django.db.models.manager.Manager object>¶
-
save_without_historical_record
(*args, **kwargs)¶ Save model without saving a historical record
Make sure you know what you’re doing before you use this method.
-
exception
-
class
gestion.models.
MenuHistory
(*args, **kwargs)¶ Stores MenuHistory related to
Menu
.-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
amount
¶ Price of the purchase.
-
coopeman
¶ Coopeman (:class:django.contrib.auth.models.User`) who collected the money.
-
coopeman_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
customer
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
customer_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
date
¶ Date of the purhcase.
-
get_next_by_date
(*, field=<django.db.models.fields.DateTimeField: date>, is_next=True, **kwargs)¶
-
get_previous_by_date
(*, field=<django.db.models.fields.DateTimeField: date>, is_next=False, **kwargs)¶
-
history
= <simple_history.manager.HistoryManager object>¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
gestion.models.Menu
purchased.
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>¶
-
paymentMethod
¶ Payment Method
of the Menu purchased.
-
paymentMethod_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
quantity
¶ Client (
django.contrib.auth.models.User
).
-
save_without_historical_record
(*args, **kwargs)¶ Save model without saving a historical record
Make sure you know what you’re doing before you use this method.
-
exception
-
class
gestion.models.
Pinte
(*args, **kwargs)¶ Stores a physical pinte
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
current_owner
¶ The current owner (
django.contrib.auth.models.User
).
-
current_owner_id
¶ 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_last_update_date
(*, field=<django.db.models.fields.DateTimeField: last_update_date>, is_next=True, **kwargs)¶
-
get_previous_by_last_update_date
(*, field=<django.db.models.fields.DateTimeField: last_update_date>, is_next=False, **kwargs)¶
-
history
= <simple_history.manager.HistoryManager object>¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
last_update_date
¶ The last update date
-
objects
= <django.db.models.manager.Manager object>¶
-
previous_owner
¶ The previous owner (
django.contrib.auth.models.User
).
-
previous_owner_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
save_without_historical_record
(*args, **kwargs)¶ Save model without saving a historical record
Make sure you know what you’re doing before you use this method.
-
exception
-
class
gestion.models.
Product
(*args, **kwargs)¶ Stores a product.
-
BOTTLE
= 'BT'¶
-
D_PRESSION
= 'DP'¶
-
exception
DoesNotExist
¶
-
FOOD
= 'FO'¶
-
G_PRESSION
= 'GP'¶
-
exception
MultipleObjectsReturned
¶
-
PANINI
= 'PA'¶
-
P_PRESSION
= 'PP'¶
-
SOFT
= 'SO'¶
-
TYPEINPUT_CHOICES_CATEGORIE
= (('PP', 'Pinte Pression'), ('DP', 'Demi Pression'), ('GP', 'Galopin pression'), ('BT', 'Bouteille'), ('SO', 'Soft'), ('FO', 'En-cas'), ('PA', 'Ingredients panini'))¶
-
adherentRequired
¶ If True, only adherents will be able to buy this product
-
amount
¶ The price of the product.
-
barcode
¶ The barcode of the product.
-
category
¶ The category of the product
-
consumption_set
¶ 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.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
consumptionhistory_set
¶ 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.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
deg
¶ Degree of alcohol, if relevant
-
futd
¶ 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.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
futg
¶ 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.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
futp
¶ 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.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
get_category_display
(*, field=<django.db.models.fields.CharField: category>)¶
-
history
= <simple_history.manager.HistoryManager object>¶
-
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
¶ If True, will be displayed on the
gestion.views.manage()
view.
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.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
name
¶ The name of the product.
-
needQuantityButton
¶ If True, a javascript quantity button will be displayed
-
objects
= <django.db.models.manager.Manager object>¶
-
ranking
¶ Get the first 25 users with
user_ranking()
-
save_without_historical_record
(*args, **kwargs)¶ Save model without saving a historical record
Make sure you know what you’re doing before you use this method.
-
showingMultiplier
¶ On the graphs on
users.views.profile()
view, the number of total consumptions is divised by the showingMultiplier
-
stockBar
¶ Number of product at the bar.
-
stockHold
¶ Number of product in the hold.
-
user_ranking
(pk)¶ Return the user ranking for the product
-
volume
¶ The volume, if relevant, of the product
-
-
class
gestion.models.
Refund
(*args, **kwargs)¶ Stores refunds.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
amount
¶ Amount of the refund.
-
coopeman
¶ Coopeman (
django.contrib.auth.models.User
) who realized the refund.
-
coopeman_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
customer
¶ Client (
django.contrib.auth.models.User
).
-
customer_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
date
¶ Date of the refund
-
get_next_by_date
(*, field=<django.db.models.fields.DateTimeField: date>, is_next=True, **kwargs)¶
-
get_previous_by_date
(*, field=<django.db.models.fields.DateTimeField: date>, is_next=False, **kwargs)¶
-
history
= <simple_history.manager.HistoryManager object>¶
-
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>¶
-
save_without_historical_record
(*args, **kwargs)¶ Save model without saving a historical record
Make sure you know what you’re doing before you use this method.
-
exception
-
class
gestion.models.
Reload
(*args, **kwargs)¶ Stores reloads.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
PaymentMethod
¶ Payment Method
of the reload.
-
PaymentMethod_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
amount
¶ Amount of the reload.
-
coopeman
¶ Coopeman (
django.contrib.auth.models.User
) who collected the reload.
-
coopeman_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
customer
¶ Client (
django.contrib.auth.models.User
).
-
customer_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
date
¶ Date of the reload.
-
get_next_by_date
(*, field=<django.db.models.fields.DateTimeField: date>, is_next=True, **kwargs)¶
-
get_previous_by_date
(*, field=<django.db.models.fields.DateTimeField: date>, is_next=False, **kwargs)¶
-
history
= <simple_history.manager.HistoryManager object>¶
-
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>¶
-
save_without_historical_record
(*args, **kwargs)¶ Save model without saving a historical record
Make sure you know what you’re doing before you use this method.
-
exception
-
gestion.models.
isDemi
(id)¶
-
gestion.models.
isGalopin
(id)¶
-
gestion.models.
isPinte
(id)¶
Users app models¶
-
class
users.models.
CotisationHistory
(*args, **kwargs)¶ Stores cotisation histories, related to
preferences.models.Cotisation
.-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
amount
¶ Price, in euros, of the cotisation.
-
coopeman
¶ User (
django.contrib.auth.models.User
) who registered the cotisation.
-
coopeman_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
cotisation
¶ Cotisation
related.
-
cotisation_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
duration
¶ Duration, in days, of the cotisation.
-
endDate
¶ End date of the cotisation.
-
get_next_by_endDate
(*, field=<django.db.models.fields.DateTimeField: endDate>, is_next=True, **kwargs)¶
-
get_next_by_paymentDate
(*, field=<django.db.models.fields.DateTimeField: paymentDate>, is_next=True, **kwargs)¶
-
get_previous_by_endDate
(*, field=<django.db.models.fields.DateTimeField: endDate>, is_next=False, **kwargs)¶
-
get_previous_by_paymentDate
(*, field=<django.db.models.fields.DateTimeField: paymentDate>, is_next=False, **kwargs)¶
-
history
= <simple_history.manager.HistoryManager object>¶
-
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>¶
-
paymentDate
¶ Date of the payment.
-
paymentMethod
¶ Payment method
used.
-
paymentMethod_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
save_without_historical_record
(*args, **kwargs)¶ Save model without saving a historical record
Make sure you know what you’re doing before you use this method.
-
user
¶ Client (
django.contrib.auth.models.User
).
-
user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
users.models.
HistoricalCotisationHistory
(id, amount, duration, paymentDate, endDate, user, paymentMethod, cotisation, coopeman, history_id, history_change_reason, history_date, history_user, history_type)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
amount
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
coopeman
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
coopeman_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
cotisation
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
cotisation_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
duration
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
endDate
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_history_type_display
(*, field=<django.db.models.fields.CharField: history_type>)¶
-
get_next_by_endDate
(*, field=<django.db.models.fields.DateTimeField: endDate>, is_next=True, **kwargs)¶
-
get_next_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)¶
-
get_next_by_paymentDate
(*, field=<django.db.models.fields.DateTimeField: paymentDate>, is_next=True, **kwargs)¶
-
get_previous_by_endDate
(*, field=<django.db.models.fields.DateTimeField: endDate>, is_next=False, **kwargs)¶
-
get_previous_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)¶
-
get_previous_by_paymentDate
(*, field=<django.db.models.fields.DateTimeField: paymentDate>, is_next=False, **kwargs)¶
-
history_change_reason
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_object
¶
-
history_type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_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.parent
is aForwardManyToOneDescriptor
instance.
-
history_user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instance
¶
-
instance_type
¶ alias of
CotisationHistory
-
next_record
¶ Get the next history record for the instance. None if last.
-
objects
= <django.db.models.manager.Manager object>¶
-
paymentDate
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
paymentMethod
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
paymentMethod_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
prev_record
¶ Get the previous history record for the instance. None if first.
-
revert_url
()¶ URL for this change in the default admin site.
-
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.parent
is aForwardManyToOneDescriptor
instance.
-
user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
users.models.
HistoricalProfile
(id, credit, debit, cotisationEnd, user, school, history_id, history_change_reason, history_date, history_user, history_type)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
cotisationEnd
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
credit
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
debit
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_history_type_display
(*, field=<django.db.models.fields.CharField: history_type>)¶
-
get_next_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)¶
-
get_previous_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)¶
-
history_change_reason
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_object
¶
-
history_type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_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.parent
is aForwardManyToOneDescriptor
instance.
-
history_user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instance
¶
-
next_record
¶ Get the next history record for the instance. None if last.
-
objects
= <django.db.models.manager.Manager object>¶
-
prev_record
¶ Get the previous history record for the instance. None if first.
-
revert_url
()¶ URL for this change in the default admin site.
-
school
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
school_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
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.parent
is aForwardManyToOneDescriptor
instance.
-
user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
users.models.
HistoricalSchool
(id, name, history_id, history_change_reason, history_date, history_user, history_type)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
get_history_type_display
(*, field=<django.db.models.fields.CharField: history_type>)¶
-
get_next_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)¶
-
get_previous_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)¶
-
history_change_reason
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_object
¶
-
history_type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_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.parent
is aForwardManyToOneDescriptor
instance.
-
history_user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instance
¶
-
name
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
next_record
¶ Get the next history record for the instance. None if last.
-
objects
= <django.db.models.manager.Manager object>¶
-
prev_record
¶ Get the previous history record for the instance. None if first.
-
revert_url
()¶ URL for this change in the default admin site.
-
exception
-
class
users.models.
HistoricalWhiteListHistory
(id, paymentDate, endDate, duration, user, coopeman, history_id, history_change_reason, history_date, history_user, history_type)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
coopeman
¶ 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.parent
is aForwardManyToOneDescriptor
instance.
-
coopeman_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
duration
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
endDate
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_history_type_display
(*, field=<django.db.models.fields.CharField: history_type>)¶
-
get_next_by_endDate
(*, field=<django.db.models.fields.DateTimeField: endDate>, is_next=True, **kwargs)¶
-
get_next_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)¶
-
get_next_by_paymentDate
(*, field=<django.db.models.fields.DateTimeField: paymentDate>, is_next=True, **kwargs)¶
-
get_previous_by_endDate
(*, field=<django.db.models.fields.DateTimeField: endDate>, is_next=False, **kwargs)¶
-
get_previous_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)¶
-
get_previous_by_paymentDate
(*, field=<django.db.models.fields.DateTimeField: paymentDate>, is_next=False, **kwargs)¶
-
history_change_reason
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_object
¶
-
history_type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_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.parent
is aForwardManyToOneDescriptor
instance.
-
history_user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instance
¶
-
instance_type
¶ alias of
WhiteListHistory
-
next_record
¶ Get the next history record for the instance. None if last.
-
objects
= <django.db.models.manager.Manager object>¶
-
paymentDate
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
prev_record
¶ Get the previous history record for the instance. None if first.
-
revert_url
()¶ URL for this change in the default admin site.
-
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.parent
is aForwardManyToOneDescriptor
instance.
-
user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
users.models.
Profile
(*args, **kwargs)¶ Stores user profile.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
alcohol
¶ Computes ingerated alcohol.
-
balance
¶ Computes client balance (
gestion.models.Profile.credit
-gestion.models.Profile.debit
).
-
cotisationEnd
¶ Date of end of cotisation for the client
-
credit
¶ Amount of money, in euros, put on the account
-
debit
¶ Amount of money, in euros, spent form the account
-
history
= <simple_history.manager.HistoryManager object>¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
is_adherent
¶ Test if a client is adherent.
-
objects
= <django.db.models.manager.Manager object>¶
-
positiveBalance
()¶ Test if the client balance is positive or null.
-
rank
¶ Computes the rank (by
gestion.models.Profile.debit
) of the client.
-
save_without_historical_record
(*args, **kwargs)¶ Save model without saving a historical record
Make sure you know what you’re doing before you use this method.
-
school_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
user
¶ Client (
django.contrib.auth.models.User
).
-
user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
users.models.
School
(*args, **kwargs)¶ Stores school.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
history
= <simple_history.manager.HistoryManager object>¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
name
¶ The name of the school
-
objects
= <django.db.models.manager.Manager object>¶
-
profile_set
¶ 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.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
save_without_historical_record
(*args, **kwargs)¶ Save model without saving a historical record
Make sure you know what you’re doing before you use this method.
-
exception
-
class
users.models.
WhiteListHistory
(*args, **kwargs)¶ Stores whitelist history.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
coopeman
¶ User (
django.contrib.auth.models.User
) who registered the cotisation.
-
coopeman_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
duration
¶ Duration, in days, of the whitelist
-
endDate
¶ End date of the whitelist.
-
get_next_by_endDate
(*, field=<django.db.models.fields.DateTimeField: endDate>, is_next=True, **kwargs)¶
-
get_next_by_paymentDate
(*, field=<django.db.models.fields.DateTimeField: paymentDate>, is_next=True, **kwargs)¶
-
get_previous_by_endDate
(*, field=<django.db.models.fields.DateTimeField: endDate>, is_next=False, **kwargs)¶
-
get_previous_by_paymentDate
(*, field=<django.db.models.fields.DateTimeField: paymentDate>, is_next=False, **kwargs)¶
-
history
= <simple_history.manager.HistoryManager object>¶
-
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>¶
-
paymentDate
¶ Date of the beginning of the whitelist.
-
save_without_historical_record
(*args, **kwargs)¶ Save model without saving a historical record
Make sure you know what you’re doing before you use this method.
-
user
¶ Client (
django.contrib.auth.models.User
).
-
user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
users.models.
create_user_profile
(sender, instance, created, **kwargs)¶ Create profile when user (
django.contrib.auth.models.User
) is created.
-
users.models.
save_user_profile
(sender, instance, **kwargs)¶ Save profile when user (
django.contrib.auth.models.User
) is saved.
-
users.models.
str_user
(self)¶ Rewrite str method for user (
django.contrib.auth.models.User
).
Preferences app models¶
-
class
preferences.models.
Cotisation
(*args, **kwargs)¶ Stores cotisations.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
amount
¶ Price of the cotisation.
-
cotisationhistory_set
¶ 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.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
duration
¶ Duration (in days) of the cotisation
-
history
= <simple_history.manager.HistoryManager object>¶
-
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>¶
-
save_without_historical_record
(*args, **kwargs)¶ Save model without saving a historical record
Make sure you know what you’re doing before you use this method.
-
exception
-
class
preferences.models.
GeneralPreferences
(*args, **kwargs)¶ Stores a unique line of general preferences
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
active_message
¶ Message displayed on the
inactive()
-
automatic_logout_time
¶ Duration after which the user is automatically disconnected if inactive
-
brewer
¶ The name of the brewer
If True, displays floating paymentButtons on the
manage()
view.
-
global_message
¶ List of messages, separated by a carriage return. One will be chosen randomly at each request on displayed in the header
-
grocer
¶ The name of the grocer
-
history
= <simple_history.manager.HistoryManager object>¶
-
home_text
¶ Text display on the home page
-
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
¶ If True, the site will be accessible. If False, all the requests are redirect to
inactive()
.
-
lost_pintes_allowed
¶ If > 0, a user will be blocked if he has losted more pints than the value
The file of the menu
-
objects
= <django.db.models.manager.Manager object>¶
-
president
¶ The name of the president
-
rules
¶ The file of the internal rules
-
save_without_historical_record
(*args, **kwargs)¶ Save model without saving a historical record
Make sure you know what you’re doing before you use this method.
-
secretary
¶ The name of the secretary
-
statutes
¶ The file of the statutes
-
treasurer
¶ The name of the treasurer
-
use_pinte_monitoring
¶ If True, alert will be displayed to allocate pints during order
-
vice_president
¶ The name of the vice-president
-
exception
-
class
preferences.models.
HistoricalCotisation
(id, amount, duration, history_id, history_change_reason, history_date, history_user, history_type)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
amount
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
duration
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_history_type_display
(*, field=<django.db.models.fields.CharField: history_type>)¶
-
get_next_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)¶
-
get_previous_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)¶
-
history_change_reason
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_object
¶
-
history_type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_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.parent
is aForwardManyToOneDescriptor
instance.
-
history_user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instance
¶
-
instance_type
¶ alias of
Cotisation
-
next_record
¶ Get the next history record for the instance. None if last.
-
objects
= <django.db.models.manager.Manager object>¶
-
prev_record
¶ Get the previous history record for the instance. None if first.
-
revert_url
()¶ URL for this change in the default admin site.
-
exception
-
class
preferences.models.
HistoricalGeneralPreferences
(id, is_active, active_message, global_message, president, vice_president, treasurer, secretary, brewer, grocer, use_pinte_monitoring, lost_pintes_allowed, floating_buttons, home_text, automatic_logout_time, statutes, rules, menu, history_id, history_change_reason, history_date, history_user, history_type)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
active_message
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
automatic_logout_time
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
brewer
¶ 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.
-
get_history_type_display
(*, field=<django.db.models.fields.CharField: history_type>)¶
-
get_next_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)¶
-
get_previous_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)¶
-
global_message
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
grocer
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_change_reason
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_object
¶
-
history_type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_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.parent
is aForwardManyToOneDescriptor
instance.
-
history_user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
home_text
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instance
¶
-
instance_type
¶ alias of
GeneralPreferences
-
is_active
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
lost_pintes_allowed
¶ 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.
-
next_record
¶ Get the next history record for the instance. None if last.
-
objects
= <django.db.models.manager.Manager object>¶
-
president
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
prev_record
¶ Get the previous history record for the instance. None if first.
-
revert_url
()¶ URL for this change in the default admin site.
-
rules
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
secretary
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
statutes
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
treasurer
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
use_pinte_monitoring
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
vice_president
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
preferences.models.
HistoricalPaymentMethod
(id, name, is_active, is_usable_in_cotisation, is_usable_in_reload, affect_balance, icon, history_id, history_change_reason, history_date, history_user, history_type)¶ -
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
affect_balance
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_history_type_display
(*, field=<django.db.models.fields.CharField: history_type>)¶
-
get_next_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=True, **kwargs)¶
-
get_previous_by_history_date
(*, field=<django.db.models.fields.DateTimeField: history_date>, is_next=False, **kwargs)¶
-
history_change_reason
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_object
¶
-
history_type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
history_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.parent
is aForwardManyToOneDescriptor
instance.
-
history_user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
icon
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instance
¶
-
instance_type
¶ alias of
PaymentMethod
-
is_active
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
is_usable_in_cotisation
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
is_usable_in_reload
¶ 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.
-
next_record
¶ Get the next history record for the instance. None if last.
-
objects
= <django.db.models.manager.Manager object>¶
-
prev_record
¶ Get the previous history record for the instance. None if first.
-
revert_url
()¶ URL for this change in the default admin site.
-
exception
-
class
preferences.models.
PaymentMethod
(*args, **kwargs)¶ Stores payment methods.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
affect_balance
¶ If true, the PaymentMethod will decrease the user’s balance when used.
-
consumptionhistory_set
¶ 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.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
cotisationhistory_set
¶ 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.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
history
= <simple_history.manager.HistoryManager object>¶
-
icon
¶ A font awesome icon (without the fa)
-
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
¶ If False, the PaymentMethod can’t be use anywhere.
-
is_usable_in_cotisation
¶ If true, the PaymentMethod can be used to pay cotisation.
-
is_usable_in_reload
¶ If true, the PaymentMethod can be used to reload an user account.
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.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
name
¶ The name of the PaymentMethod.
-
objects
= <django.db.models.manager.Manager object>¶
-
reload_set
¶ 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.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
save_without_historical_record
(*args, **kwargs)¶ Save model without saving a historical record
Make sure you know what you’re doing before you use this method.
-
exception


|
CocosDenshion iOS
2.0
CocosDenshion API Reference (iOS version) for www.kobold2d.com developers
|
#import <OpenAL/al.h>
#import <OpenAL/alc.h>
#import <AudioToolbox/AudioToolbox.h>
#import <Foundation/Foundation.h>
#import "CDConfig.h"
#import "CDOpenALSupport.h"
Classes | |
| struct | sourceGroup |
| struct | bufferInfo |
| struct | sourceInfo |
| protocol | <CDAudioTransportProtocol> |
| protocol | <CDAudioInterruptProtocol> |
| class | CDUtilities |
| class | CDSoundEngine |
| class | CDSoundSource |
| class | CDAudioInterruptTargetGroup |
| class | CDAsynchBufferLoader |
| class | CDBufferLoadRequest |
| class | CDFloatInterpolator |
| class | CDPropertyModifier |
| class | CDSoundSourceFader |
| class | CDSoundSourcePanner |
| class | CDSoundSourcePitchBender |
| class | CDSoundEngineFader |
Defines | |
| #define | CDLOG(...) do {} while (0) |
| #define | CDLOGINFO(...) do {} while (0) |
| #define | CD_SOURCE_LIMIT 32 |
| #define | CD_NO_SOURCE 0xFEEDFAC |
| #define | CD_IGNORE_AUDIO_SESSION 0xBEEFBEE |
| #define | CD_MUTE 0xFEEDBAB |
| #define | CD_NO_SOUND = -1; |
| #define | CD_SAMPLE_RATE_HIGH 44100 |
| #define | CD_SAMPLE_RATE_MID 22050 |
| #define | CD_SAMPLE_RATE_LOW 16000 |
| #define | CD_SAMPLE_RATE_BASIC 8000 |
| #define | CD_SAMPLE_RATE_DEFAULT 44100 |
Enumerations | |
| enum | bufferState { CD_BS_EMPTY = 0, CD_BS_LOADED = 1, CD_BS_FAILED = 2 } |
| enum | tCDInterpolationType { kIT_Linear, kIT_SCurve, kIT_Exponential } |
Variables | |
| NSString *const | kCDN_BadAlContext |
| NSString *const | kCDN_AsynchLoadComplete |
| float const | kCD_PitchDefault |
| float const | kCD_PitchLowerOneOctave |
| float const | kCD_PitchHigherOneOctave |
| float const | kCD_PanDefault |
| float const | kCD_PanFullLeft |
| float const | kCD_PanFullRight |
| float const | kCD_GainDefault |
IMPORTANT There are 3 different ways of using CocosDenshion. Depending on which you choose you will need to include different files and frameworks.
Requirements:
Requirements:
Requirements:
| enum tCDInterpolationType |


AWS::IAM::ManagedPolicy
Creates a new managed policy for your AWS account.
This operation creates a policy version with a version identifier of v1
and sets v1 as the policy's default version. For more information about policy versions,
see Versioning for managed policies in the
IAM User Guide.
As a best practice, you can validate your IAM policies. To learn more, see Validating IAM policies in the IAM User Guide.
For more information about managed policies in general, see Managed policies and inline policies in the IAM User Guide.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::IAM::ManagedPolicy", "Properties" : { "Description" :
String
, "Groups" :[ String, ... ]
, "ManagedPolicyName" :String
, "Path" :String
, "PolicyDocument" :Json
, "Roles" :[ String, ... ]
, "Users" :[ String, ... ]
} }
YAML
Type: AWS::IAM::ManagedPolicy Properties: Description:
String
Groups:- String
ManagedPolicyName:String
Path:String
PolicyDocument:Json
Roles:- String
Users:- String
Properties
Description
-
A friendly description of the policy.
Typically used to store information about the permissions defined in the policy. For example, "Grants access to production DynamoDB tables."
The policy description is immutable. After a value is assigned, it cannot be changed.
Required: No
Type: String
Maximum:
1000
Update requires: Replacement
Groups
-
The name (friendly name, not ARN) of the group to attach the policy to.
This parameter allows (through its regex pattern
) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- Required: No
Type: List of String
Minimum:
1
Maximum:
128
Pattern:
[\w+=,.@-]+
Update requires: No interruption
ManagedPolicyName
-
The friendly name of the policy.
Important If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
If you specify a name, you must specify the
CAPABILITY_NAMED_IAM
value to acknowledge your template's capabilities. For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.Important Naming an IAM resource can cause an unrecoverable error if you reuse the same template in multiple Regions. To prevent this, we recommend using
Fn::Join
andAWS::Region
to create a Region-specific name, as in the following example:{"Fn::Join": ["", [{"Ref": "AWS::Region"}, {"Ref": "MyResourceName"}]]}
.Required: No
Type: String
Update requires: Replacement
Path
-
The path for the policy.
For more information about paths, see IAM identifiers in the IAM User Guide.
This parameter is optional. If it is not included, it defaults to a slash (/).
This parameter allows (through its regex pattern
) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! ( \u0021
) through the DEL character (\u007F
), including most punctuation characters, digits, and upper and lowercased letters.Note You cannot use an asterisk (*) in the path name.
Required: No
Type: String
Minimum:
1
Maximum:
512
Pattern:
((/[A-Za-z0-9\.,\+@=_-]+)*)/
Update requires: Replacement
PolicyDocument
-
The JSON policy document that you want to use as the content for the new policy.
You must provide policies in JSON format in IAM. However, for AWS CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. AWS CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
The maximum length of the policy document that you can pass in this operation, including whitespace, is listed below. To view the maximum character counts of a managed policy with no whitespaces, see IAM and AWS STS character quotas.
To learn more about JSON policy grammar, see Grammar of the IAM JSON policy language in the IAM User Guide.
The regex pattern
used to validate this parameter is a string of characters consisting of the following: -
Any printable ASCII character ranging from the space character (
\u0020
) through the end of the ASCII character range -
The printable characters in the Basic Latin and Latin-1 Supplement character set (through
\u00FF
) -
The special characters tab (
\u0009
), line feed (\u000A
), and carriage return (\u000D
)
Required: Yes
Type: Json
Minimum:
1
Maximum:
131072
Pattern:
[\u0009\u000A\u000D\u0020-\u00FF]+
Update requires: No interruption
-
Roles
-
The name (friendly name, not ARN) of the role to attach the policy to.
This parameter allows (per its regex pattern
) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- Note If an external policy (such as
AWS::IAM::Policy
orAWS::IAM::ManagedPolicy
) has aRef
to a role and if a resource (such asAWS::ECS::Service
) also has aRef
to the same role, add aDependsOn
attribute to the resource to make the resource depend on the external policy. This dependency ensures that the role's policy is available throughout the resource's lifecycle. For example, when you delete a stack with anAWS::ECS::Service
resource, theDependsOn
attribute ensures that AWS CloudFormation deletes theAWS::ECS::Service
resource before deleting its role's policy.Required: No
Type: List of String
Update requires: No interruption
Users
-
The name (friendly name, not ARN) of the IAM user to attach the policy to.
This parameter allows (through its regex pattern
) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- Required: No
Type: List of String
Minimum:
1
Maximum:
64
Pattern:
[\w+=,.@-]+
Update requires: No interruption
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Ref
function, Ref
returns the ARN.
In the following sample, the Ref
function returns the ARN of the
CreateTestDBPolicy
managed policy, such as
arn:aws:iam::123456789012:policy/teststack-CreateTestDBPolicy-16M23YE3CS700
.
{ "Ref": "CreateTestDBPolicy" }
For more information about using the Ref
function, see Ref.
Examples
Create managed policy
The following example creates a managed policy and associates it with the
TestDBGroup
group. The managed policy grants users permission to
create t2.micro database instances. The database must use the MySQL database engine
and the instance name must include the prefix test
.
JSON
{ "CreateTestDBPolicy": { "Type": "AWS::IAM::ManagedPolicy", "Properties": { "Description": "Policy for creating a test database", "Path": "/", "PolicyDocument": { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "rds:CreateDBInstance", "Resource": { "Fn::Join": [ "", [ "arn:aws:rds:", { "Ref": "AWS::Region" }, ":", { "Ref": "AWS::AccountId" }, ":db:test*" ] ] }, "Condition": { "StringEquals": { "rds:DatabaseEngine": "mysql" } } }, { "Effect": "Allow", "Action": "rds:CreateDBInstance", "Resource": { "Fn::Join": [ "", [ "arn:aws:rds:", { "Ref": "AWS::Region" }, ":", { "Ref": "AWS::AccountId" }, ":db:test*" ] ] }, "Condition": { "StringEquals": { "rds:DatabaseClass": "db.t2.micro" } } } ] }, "Groups": [ "TestDBGroup" ] } } }
YAML
CreateTestDBPolicy: Type: 'AWS::IAM::ManagedPolicy' Properties: Description: Policy for creating a test database Path: / PolicyDocument: Version: "2012-10-17" Statement: - Effect: Allow Action: 'rds:CreateDBInstance' Resource: !Join - '' - - 'arn:aws:rds:' - !Ref 'AWS::Region' - ':' - !Ref 'AWS::AccountId' - ':db:test*' Condition: StringEquals: 'rds:DatabaseEngine': mysql - Effect: Allow Action: 'rds:CreateDBInstance' Resource: !Join - '' - - 'arn:aws:rds:' - !Ref 'AWS::Region' - ':' - !Ref 'AWS::AccountId' - ':db:test*' Condition: StringEquals: 'rds:DatabaseClass': db.t2.micro Groups: - TestDBGroup
See also
-
CreatePolicy in the AWS Identity and Access Management API Reference