gestion package

Subpackages

Submodules

gestion.admin module

class gestion.admin.ConsumptionAdmin(model, admin_site)

Bases : simple_history.admin.SimpleHistoryAdmin

list_display = ('customer', 'product', 'quantity')
media
ordering = ('-quantity',)
search_fields = ('customer', 'product')
class gestion.admin.ConsumptionHistoryAdmin(model, admin_site)

Bases : simple_history.admin.SimpleHistoryAdmin

list_display = ('customer', 'product', 'quantity', 'paymentMethod', 'date', 'amount')
list_filter = ('paymentMethod',)
media
ordering = ('-date',)
search_fields = ('customer', 'product')
class gestion.admin.KegAdmin(model, admin_site)

Bases : simple_history.admin.SimpleHistoryAdmin

list_display = ('name', 'stockHold', 'capacity', 'is_active')
list_filter = ('capacity', 'is_active')
media
ordering = ('name',)
search_fields = ('name',)
class gestion.admin.KegHistoryAdmin(model, admin_site)

Bases : simple_history.admin.SimpleHistoryAdmin

list_display = ('keg', 'openingDate', 'closingDate', 'isCurrentKegHistory', 'quantitySold')
list_filter = ('isCurrentKegHistory', 'keg')
media
ordering = ('-openingDate', 'quantitySold')
search_fields = ('keg',)
class gestion.admin.MenuAdmin(model, admin_site)

Bases : simple_history.admin.SimpleHistoryAdmin

list_display = ('name', 'amount', 'is_active')
list_filter = ('is_active',)
media
ordering = ('name', 'amount')
search_fields = ('name',)
class gestion.admin.MenuHistoryAdmin(model, admin_site)

Bases : simple_history.admin.SimpleHistoryAdmin

list_display = ('customer', 'menu', 'paymentMethod', 'date', 'quantity', 'amount')
media
ordering = ('-date',)
search_fields = ('customer', 'menu')
class gestion.admin.ProductAdmin(model, admin_site)

Bases : simple_history.admin.SimpleHistoryAdmin

list_display = ('name', 'amount', 'is_active', 'category', 'adherentRequired', 'stockHold', 'stockBar', 'volume', 'deg')
list_filter = ('is_active', 'adherentRequired', 'category')
media
ordering = ('name', 'amount', 'stockHold', 'stockBar', 'deg')
search_fields = ('name',)
class gestion.admin.RefundAdmin(model, admin_site)

Bases : simple_history.admin.SimpleHistoryAdmin

list_display = ('customer', 'amount', 'date')
media
ordering = ('-date', 'amount', 'customer')
search_fields = ('customer',)
class gestion.admin.ReloadAdmin(model, admin_site)

Bases : simple_history.admin.SimpleHistoryAdmin

list_display = ('customer', 'amount', 'date', 'PaymentMethod')
list_filter = ('PaymentMethod',)
media
ordering = ('-date', 'amount', 'customer')
search_fields = ('customer',)

gestion.apps module

class gestion.apps.GestionConfig(app_name, app_module)

Bases : django.apps.config.AppConfig

name = 'gestion'

gestion.environment module

gestion.environment.latex_safe(value)
gestion.environment.my_environment(**options)

gestion.forms module

class gestion.forms.GenerateReleveForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)

Bases : django.forms.forms.Form

base_fields = {'begin': <django.forms.fields.DateTimeField object>, 'end': <django.forms.fields.DateTimeField object>}
declared_fields = {'begin': <django.forms.fields.DateTimeField object>, 'end': <django.forms.fields.DateTimeField object>}
media
class gestion.forms.GestionForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)

Bases : django.forms.forms.Form

base_fields = {'client': <django.forms.models.ModelChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>}
declared_fields = {'client': <django.forms.models.ModelChoiceField object>, 'product': <django.forms.models.ModelChoiceField object>}
media
class gestion.forms.KegForm(*args, **kwargs)

Bases : django.forms.models.ModelForm

class Meta

Bases : object

exclude = ('is_active',)
model

alias de gestion.models.Keg

widgets = {'amount': <class 'django.forms.widgets.TextInput'>}
base_fields = {'amount': <django.forms.fields.DecimalField object>, 'barcode': <django.forms.fields.CharField object>, 'capacity': <django.forms.fields.IntegerField object>, 'demi': <django.forms.models.ModelChoiceField object>, 'galopin': <django.forms.models.ModelChoiceField object>, 'name': <django.forms.fields.CharField object>, 'pinte': <django.forms.models.ModelChoiceField object>, 'stockHold': <django.forms.fields.IntegerField object>}
declared_fields = {}
media
class gestion.forms.MenuForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Bases : django.forms.models.ModelForm

class Meta

Bases : object

fields = '__all__'
model

alias de gestion.models.Menu

widgets = {'amount': <class 'django.forms.widgets.TextInput'>}
base_fields = {'amount': <django.forms.fields.DecimalField object>, 'articles': <django.forms.models.ModelMultipleChoiceField object>, 'barcode': <django.forms.fields.CharField object>, 'is_active': <django.forms.fields.BooleanField object>, 'name': <django.forms.fields.CharField object>}
declared_fields = {}
media
class gestion.forms.PinteForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)

Bases : django.forms.forms.Form

base_fields = {'begin': <django.forms.fields.IntegerField object>, 'end': <django.forms.fields.IntegerField object>, 'ids': <django.forms.fields.CharField object>}
declared_fields = {'begin': <django.forms.fields.IntegerField object>, 'end': <django.forms.fields.IntegerField object>, 'ids': <django.forms.fields.CharField object>}
media
class gestion.forms.ProductForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Bases : django.forms.models.ModelForm

class Meta

Bases : object

fields = '__all__'
model

alias de gestion.models.Product

widgets = {'amount': <class 'django.forms.widgets.TextInput'>}
base_fields = {'adherentRequired': <django.forms.fields.BooleanField object>, 'amount': <django.forms.fields.DecimalField object>, 'barcode': <django.forms.fields.CharField object>, 'category': <django.forms.fields.TypedChoiceField object>, 'deg': <django.forms.fields.DecimalField object>, 'is_active': <django.forms.fields.BooleanField object>, 'name': <django.forms.fields.CharField object>, 'needQuantityButton': <django.forms.fields.BooleanField object>, 'showingMultiplier': <django.forms.fields.IntegerField object>, 'stockBar': <django.forms.fields.IntegerField object>, 'stockHold': <django.forms.fields.IntegerField object>, 'volume': <django.forms.fields.IntegerField object>}
declared_fields = {}
media
class gestion.forms.RefundForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)

Bases : django.forms.models.ModelForm

class Meta

Bases : object

fields = ('customer', 'amount')
model

alias de gestion.models.Refund

widgets = {'amount': <class 'django.forms.widgets.TextInput'>, 'customer': <dal_select2.widgets.ModelSelect2 object>}
base_fields = {'amount': <django.forms.fields.DecimalField object>, 'customer': <django.forms.models.ModelChoiceField object>}
declared_fields = {}
media
class gestion.forms.ReloadForm(*args, **kwargs)

Bases : django.forms.models.ModelForm

class Meta

Bases : object

fields = ('customer', 'amount', 'PaymentMethod')
model

alias de gestion.models.Reload

widgets = {'amount': <class 'django.forms.widgets.TextInput'>, 'customer': <dal_select2.widgets.ModelSelect2 object>}
base_fields = {'PaymentMethod': <django.forms.models.ModelChoiceField object>, 'amount': <django.forms.fields.DecimalField object>, 'customer': <django.forms.models.ModelChoiceField object>}
declared_fields = {}
media
class gestion.forms.SearchMenuForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)

Bases : django.forms.forms.Form

base_fields = {'menu': <django.forms.models.ModelChoiceField object>}
declared_fields = {'menu': <django.forms.models.ModelChoiceField object>}
media
class gestion.forms.SearchProductForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)

Bases : django.forms.forms.Form

base_fields = {'product': <django.forms.models.ModelChoiceField object>}
declared_fields = {'product': <django.forms.models.ModelChoiceField object>}
media
class gestion.forms.SelectActiveKegForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)

Bases : django.forms.forms.Form

base_fields = {'keg': <django.forms.models.ModelChoiceField object>}
declared_fields = {'keg': <django.forms.models.ModelChoiceField object>}
media
class gestion.forms.SelectPositiveKegForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)

Bases : django.forms.forms.Form

base_fields = {'keg': <django.forms.models.ModelChoiceField object>}
declared_fields = {'keg': <django.forms.models.ModelChoiceField object>}
media

gestion.models module

class gestion.models.Consumption(*args, **kwargs)

Bases : django.db.models.base.Model

Stores total consumptions

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.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 a ForwardManyToOneDescriptor 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.

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

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 a ForwardManyToOneDescriptor 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.

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.

class gestion.models.ConsumptionHistory(*args, **kwargs)

Bases : django.db.models.base.Model

Stores consumption history related to Product

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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_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

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 a ForwardManyToOneDescriptor 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.

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 a ForwardManyToOneDescriptor 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.

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.

class gestion.models.HistoricalConsumption(id, quantity, customer, product, history_id, history_change_reason, history_date, history_user, history_type)

Bases : simple_history.models.HistoricalChanges, django.db.models.base.Model

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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 de 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 a ForwardManyToOneDescriptor 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.

class gestion.models.HistoricalConsumptionHistory(id, quantity, date, amount, customer, paymentMethod, product, coopeman, history_id, history_change_reason, history_date, history_user, history_type)

Bases : simple_history.models.HistoricalChanges, django.db.models.base.Model

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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 de 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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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.

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)

Bases : simple_history.models.HistoricalChanges, django.db.models.base.Model

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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 de Keg

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 a ForwardManyToOneDescriptor 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.

class gestion.models.HistoricalKegHistory(id, openingDate, quantitySold, amountSold, closingDate, isCurrentKegHistory, keg, history_id, history_change_reason, history_date, history_user, history_type)

Bases : simple_history.models.HistoricalChanges, django.db.models.base.Model

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.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 a ForwardManyToOneDescriptor 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 de 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 a ForwardManyToOneDescriptor 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.

class gestion.models.HistoricalMenu(id, name, amount, barcode, is_active, history_id, history_change_reason, history_date, history_user, history_type)

Bases : simple_history.models.HistoricalChanges, django.db.models.base.Model

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.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 a ForwardManyToOneDescriptor 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 de Menu

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.

class gestion.models.HistoricalMenuHistory(id, quantity, date, amount, customer, paymentMethod, menu, coopeman, history_id, history_change_reason, history_date, history_user, history_type)

Bases : simple_history.models.HistoricalChanges, django.db.models.base.Model

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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 de MenuHistory

menu

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 a ForwardManyToOneDescriptor instance.

menu_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>
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 a ForwardManyToOneDescriptor 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.

class gestion.models.HistoricalPinte(id, last_update_date, current_owner, previous_owner, history_id, history_change_reason, history_date, history_user, history_type)

Bases : simple_history.models.HistoricalChanges, django.db.models.base.Model

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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 de Pinte

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 a ForwardManyToOneDescriptor 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.

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)

Bases : simple_history.models.HistoricalChanges, django.db.models.base.Model

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.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 a ForwardManyToOneDescriptor 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 de Product

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.

class gestion.models.HistoricalRefund(id, date, amount, customer, coopeman, history_id, history_change_reason, history_date, history_user, history_type)

Bases : simple_history.models.HistoricalChanges, django.db.models.base.Model

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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 de Refund

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.

class gestion.models.HistoricalReload(id, amount, date, customer, PaymentMethod, coopeman, history_id, history_change_reason, history_date, history_user, history_type)

Bases : simple_history.models.HistoricalChanges, django.db.models.base.Model

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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 de Reload

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.

class gestion.models.Keg(*args, **kwargs)

Bases : django.db.models.base.Model

Stores a keg

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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.

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

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 a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
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 a ForwardManyToOneDescriptor 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.

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

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

class gestion.models.KegHistory(*args, **kwargs)

Bases : django.db.models.base.Model

Stores a keg history, related to keg

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.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_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.

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 a ForwardManyToOneDescriptor 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.

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.

quantitySold

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.

class gestion.models.Menu(*args, **kwargs)

Bases : django.db.models.base.Model

Stores menus

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.MultipleObjectsReturned

adherent_required
amount

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

articles

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 and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

barcode

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.

is_active

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

menuhistory_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 a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
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.

class gestion.models.MenuHistory(*args, **kwargs)

Bases : django.db.models.base.Model

Stores MenuHistory related to Menu

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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_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.

menu

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 a ForwardManyToOneDescriptor instance.

menu_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

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 a ForwardManyToOneDescriptor 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.

quantity

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.

class gestion.models.Pinte(*args, **kwargs)

Bases : django.db.models.base.Model

Stores a physical pinte

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.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 a ForwardManyToOneDescriptor 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_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

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>
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 a ForwardManyToOneDescriptor 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.

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.

class gestion.models.Product(*args, **kwargs)

Bases : django.db.models.base.Model

Stores a product

BOTTLE = 'BT'
D_PRESSION = 'DP'
exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

FOOD = 'FO'
G_PRESSION = 'GP'
exception MultipleObjectsReturned

Bases : django.core.exceptions.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

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.

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 a ReverseManyToOneDescriptor 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 a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

deg

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

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 a ReverseManyToOneDescriptor 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 a ReverseManyToOneDescriptor 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 a ReverseManyToOneDescriptor 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

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

menu_set

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 and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

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.

objects = <django.db.models.manager.Manager object>
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

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.

user_ranking(pk)
volume

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

class gestion.models.Refund(*args, **kwargs)

Bases : django.db.models.base.Model

Stores refunds

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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_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.

class gestion.models.Reload(*args, **kwargs)

Bases : django.db.models.base.Model

Stores reloads

exception DoesNotExist

Bases : django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases : django.core.exceptions.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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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_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.

gestion.models.isDemi(id)
gestion.models.isGalopin(id)
gestion.models.isPinte(id)

gestion.tests module

gestion.urls module

gestion.urls.path(route, view, kwargs=None, name=None, *, Pattern=<class 'django.urls.resolvers.RoutePattern'>)

gestion.views module

class gestion.views.ActiveProductsAutocomplete(**kwargs)

Bases : dal_select2.views.Select2QuerySetView

Autocomplete view for active products

get_queryset()

Filter the queryset with GET[“q”].

class gestion.views.KegActiveAutocomplete(**kwargs)

Bases : dal_select2.views.Select2QuerySetView

Autocomplete view for active kegs

get_queryset()

Filter the queryset with GET[“q”].

class gestion.views.KegPositiveAutocomplete(**kwargs)

Bases : dal_select2.views.Select2QuerySetView

Autocomplete view for kegs with positive stockHold

get_queryset()

Filter the queryset with GET[“q”].

class gestion.views.MenusAutocomplete(**kwargs)

Bases : dal_select2.views.Select2QuerySetView

Used as autcomplete for all menus

get_queryset()

Filter the queryset with GET[“q”].

class gestion.views.ProductsAutocomplete(**kwargs)

Bases : dal_select2.views.Select2QuerySetView

Autocomplete view for all products

get_queryset()

Filter the queryset with GET[“q”].

gestion.views.allocate(pinte_pk, user)

Allocate a pinte to a user or release the pinte if user is None

Module contents