events package

Contents

events package#

Subpackages#

Submodules#

events.admin module#

Generated by utils/cgit/cgit_util_generate_admin_file on 2022-01-24 14:48:09.283627

class events.admin.BasketItemAdmin(model, admin_site)[source]#

Bases: ModelAdmin

Admin class for model BasketItem

autocomplete_fields = ['player', 'event_entry']#
property media#
class events.admin.BulletinAdmin(model, admin_site)[source]#

Bases: ModelAdmin

Admin class for model Bulletin

autocomplete_fields = ['congress']#
property media#
class events.admin.CategoryAdmin(model, admin_site)[source]#

Bases: ModelAdmin

Admin class for model Category

autocomplete_fields = ['event']#
property media#
search_fields = ['event']#
class events.admin.CongressAdmin(model, admin_site)[source]#

Bases: ModelAdmin

Admin class for model Congress

autocomplete_fields = ['congress_master', 'author', 'last_updated_by']#
property media#
search_fields = ['congress_master', 'author']#
class events.admin.CongressDownloadAdmin(model, admin_site)[source]#

Bases: ModelAdmin

Admin class for model CongressDownload

autocomplete_fields = ['congress']#
property media#
class events.admin.CongressLinkAdmin(model, admin_site)[source]#

Bases: ModelAdmin

Admin class for model CongressLink

autocomplete_fields = ['congress']#
property media#
class events.admin.CongressMasterAdmin(model, admin_site)[source]#

Bases: ModelAdmin

Admin class for model CongressMaster

autocomplete_fields = ['org']#
property media#
search_fields = ['org']#
class events.admin.CongressNewsItemAdmin(model, admin_site)[source]#

Bases: ModelAdmin

Admin class for model CongressNewsItem

autocomplete_fields = ['congress']#
property media#
class events.admin.EventAdmin(model, admin_site)[source]#

Bases: ModelAdmin

Admin class for model Event

autocomplete_fields = ['congress']#
list_display = ('event_name', 'congress', 'description')#
property media#
readonly_fields = ('show_url',)#
search_fields = ('event_name', 'congress__name', 'description')#
show_url(instance)[source]#
class events.admin.EventEntryAdmin(model, admin_site)[source]#

Bases: ModelAdmin

Admin class for model EventEntry

autocomplete_fields = ['event', 'primary_entrant', 'category']#
property media#
search_fields = ['event', 'primary_entrant']#
class events.admin.EventEntryPlayerAdmin(model, admin_site)[source]#

Bases: ModelAdmin

Admin class for model EventEntryPlayer

autocomplete_fields = ['event_entry', 'player', 'paid_by']#
property media#
class events.admin.EventLogAdmin(model, admin_site)[source]#

Bases: ModelAdmin

Admin class for model EventLog

autocomplete_fields = ['event', 'actor', 'event_entry']#
property media#
class events.admin.EventPlayerDiscountAdmin(model, admin_site)[source]#

Bases: ModelAdmin

Admin class for model EventPlayerDiscount

autocomplete_fields = ['event', 'player', 'admin']#
property media#
class events.admin.PartnershipDeskAdmin(model, admin_site)[source]#

Bases: ModelAdmin

Admin class for model PartnershipDesk

autocomplete_fields = ['event', 'player']#
property media#
class events.admin.PlayerBatchIdAdmin(model, admin_site)[source]#

Bases: ModelAdmin

Admin class for model PlayerBatchId

autocomplete_fields = ['player']#
property media#
class events.admin.SessionAdmin(model, admin_site)[source]#

Bases: ModelAdmin

Admin class for model Session

autocomplete_fields = ['event']#
property media#

events.apps module#

class events.apps.EventsConfig(app_name, app_module)[source]#

Bases: AppConfig

name = 'events'#

events.forms module#

class events.forms.BulletinForm(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)[source]#

Bases: ModelForm

class Meta[source]#

Bases: object

fields = ('document', 'congress', 'description')#
model#

alias of Bulletin

base_fields = {'congress': <django.forms.models.ModelChoiceField object>, 'description': <django.forms.fields.CharField object>, 'document': <django.forms.fields.FileField object>}#
declared_fields = {}#
property media#

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

class events.forms.CongressDownloadForm(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)[source]#

Bases: ModelForm

class Meta[source]#

Bases: object

fields = ('document', 'congress', 'description')#
model#

alias of CongressDownload

base_fields = {'congress': <django.forms.models.ModelChoiceField object>, 'description': <django.forms.fields.CharField object>, 'document': <django.forms.fields.FileField object>}#
declared_fields = {}#
property media#

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

class events.forms.CongressForm(*args, **kwargs)[source]#

Bases: ModelForm

class Meta[source]#

Bases: object

fields = ('congress_master', 'year', 'name', 'start_date', 'end_date', 'date_string', 'venue_name', 'venue_location', 'venue_transport', 'venue_catering', 'venue_additional_info', 'additional_info', 'people', 'raw_html', 'general_info', 'links', 'sponsors', 'payment_method_system_dollars', 'payment_method_bank_transfer', 'payment_method_cash', 'payment_method_cheques', 'payment_method_off_system_pp', 'entry_open_date', 'entry_close_date', 'allow_partnership_desk', 'senior_date', 'senior_age', 'members_only', 'allow_member_entry_fee', 'youth_payment_discount_date', 'youth_payment_discount_age', 'early_payment_discount_date', 'allow_youth_payment_discount', 'allow_early_payment_discount', 'bank_transfer_details', 'cheque_details', 'automatic_refund_cutoff', 'congress_type', 'contact_email', 'congress_venue_type', 'online_platform')#
model#

alias of Congress

base_fields = {'additional_info': <django.forms.fields.CharField object>, 'allow_early_payment_discount': <django.forms.fields.BooleanField object>, 'allow_member_entry_fee': <django.forms.fields.BooleanField object>, 'allow_partnership_desk': <django.forms.fields.BooleanField object>, 'allow_youth_payment_discount': <django.forms.fields.BooleanField object>, 'automatic_refund_cutoff': <django.forms.fields.DateField object>, 'bank_transfer_details': <django.forms.fields.CharField object>, 'cheque_details': <django.forms.fields.CharField object>, 'congress_master': <django.forms.models.ModelChoiceField object>, 'congress_type': <django.forms.fields.TypedChoiceField object>, 'congress_venue_type': <django.forms.fields.TypedChoiceField object>, 'contact_email': <django.forms.fields.EmailField object>, 'date_string': <django.forms.fields.CharField object>, 'early_payment_discount_date': <django.forms.fields.DateField object>, 'end_date': <django.forms.fields.DateField object>, 'entry_close_date': <django.forms.fields.DateField object>, 'entry_open_date': <django.forms.fields.DateField object>, 'general_info': <django.forms.fields.CharField object>, 'links': <django.forms.fields.CharField object>, 'members_only': <django.forms.fields.BooleanField object>, 'name': <django.forms.fields.CharField object>, 'online_platform': <django.forms.fields.TypedChoiceField object>, 'payment_method_bank_transfer': <django.forms.fields.BooleanField object>, 'payment_method_cash': <django.forms.fields.BooleanField object>, 'payment_method_cheques': <django.forms.fields.BooleanField object>, 'payment_method_off_system_pp': <django.forms.fields.BooleanField object>, 'payment_method_system_dollars': <django.forms.fields.BooleanField object>, 'people': <django.forms.fields.CharField object>, 'raw_html': <django.forms.fields.CharField object>, 'senior_age': <django.forms.fields.IntegerField object>, 'senior_date': <django.forms.fields.DateField object>, 'sponsors': <django.forms.fields.CharField object>, 'start_date': <django.forms.fields.DateField object>, 'venue_additional_info': <django.forms.fields.CharField object>, 'venue_catering': <django.forms.fields.CharField object>, 'venue_location': <django.forms.fields.CharField object>, 'venue_name': <django.forms.fields.CharField object>, 'venue_transport': <django.forms.fields.CharField object>, 'year': <django.forms.fields.IntegerField object>, 'youth_payment_discount_age': <django.forms.fields.IntegerField object>, 'youth_payment_discount_date': <django.forms.fields.DateField object>}#
clean_allow_early_payment_discount()[source]#
clean_allow_youth_payment_discount()[source]#
declared_fields = {'additional_info': <django.forms.fields.CharField object>, 'bank_transfer_details': <django.forms.fields.CharField object>, 'cheque_details': <django.forms.fields.CharField object>, 'general_info': <django.forms.fields.CharField object>, 'links': <django.forms.fields.CharField object>, 'people': <django.forms.fields.CharField object>, 'sponsors': <django.forms.fields.CharField object>, 'venue_additional_info': <django.forms.fields.CharField object>, 'venue_catering': <django.forms.fields.CharField object>, 'venue_transport': <django.forms.fields.CharField object>}#
property media#

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

class events.forms.CongressMasterForm(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)[source]#

Bases: ModelForm

class Meta[source]#

Bases: object

fields = ('name', 'org')#
model#

alias of CongressMaster

base_fields = {'name': <django.forms.fields.CharField object>, 'org': <django.forms.models.ModelChoiceField object>}#
declared_fields = {}#
property media#

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

class events.forms.EmailForm(*args, **kwargs)[source]#

Bases: Form

base_fields = {'body': <django.forms.fields.CharField object>, 'subject': <django.forms.fields.CharField object>}#
clean_body()[source]#
declared_fields = {'body': <django.forms.fields.CharField object>, 'subject': <django.forms.fields.CharField object>}#
property media#

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

class events.forms.EventEntryPlayerForm(*args, **kwargs)[source]#

Bases: ModelForm

class Meta[source]#

Bases: object

fields = ('payment_type', 'payment_status', 'entry_fee', 'payment_received', 'reason')#
model#

alias of EventEntryPlayer

base_fields = {'entry_fee': <django.forms.fields.DecimalField object>, 'payment_received': <django.forms.fields.DecimalField object>, 'payment_status': <django.forms.fields.TypedChoiceField object>, 'payment_type': <django.forms.fields.TypedChoiceField object>, 'reason': <django.forms.fields.CharField object>}#
clean_entry_fee()[source]#
declared_fields = {}#
property media#

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

class events.forms.EventEntryPlayerTBAForm(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)[source]#

Bases: ModelForm

Handle changing the TBA data (manual override)

class Meta[source]#

Bases: object

fields = ('override_tba_name', 'override_tba_system_number')#
model#

alias of EventEntryPlayer

base_fields = {'override_tba_name': <django.forms.fields.CharField object>, 'override_tba_system_number': <django.forms.fields.IntegerField object>}#
declared_fields = {}#
property media#

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

class events.forms.EventForm(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)[source]#

Bases: ModelForm

class Meta[source]#

Bases: object

fields = ('event_name', 'description', 'max_entries', 'event_type', 'entry_open_date', 'entry_close_date', 'entry_close_time', 'player_format', 'entry_fee', 'member_entry_fee', 'entry_early_payment_discount', 'entry_youth_payment_discount', 'free_format_question', 'allow_team_names', 'list_priority_order')#
model#

alias of Event

base_fields = {'allow_team_names': <django.forms.fields.BooleanField object>, 'description': <django.forms.fields.CharField object>, 'entry_close_date': <django.forms.fields.DateField object>, 'entry_close_time': <django.forms.fields.TimeField object>, 'entry_early_payment_discount': <django.forms.fields.DecimalField object>, 'entry_fee': <django.forms.fields.DecimalField object>, 'entry_open_date': <django.forms.fields.DateField object>, 'entry_youth_payment_discount': <django.forms.fields.IntegerField object>, 'event_name': <django.forms.fields.CharField object>, 'event_type': <django.forms.fields.TypedChoiceField object>, 'free_format_question': <django.forms.fields.CharField object>, 'list_priority_order': <django.forms.fields.IntegerField object>, 'max_entries': <django.forms.fields.IntegerField object>, 'member_entry_fee': <django.forms.fields.DecimalField object>, 'player_format': <django.forms.fields.TypedChoiceField object>}#
clean_entry_early_payment_discount()[source]#
clean_entry_youth_payment_discount()[source]#

If we have a youth discount then check it is a positive number

declared_fields = {'entry_close_time': <django.forms.fields.TimeField object>}#
property media#

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

save(commit=True)[source]#

Override to deal with translating per player to per entry

class events.forms.EventPlayerDiscountForm(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)[source]#

Bases: ModelForm

class Meta[source]#

Bases: object

fields = ('player', 'reason', 'entry_fee')#
model#

alias of EventPlayerDiscount

base_fields = {'entry_fee': <django.forms.fields.DecimalField object>, 'player': <django.forms.models.ModelChoiceField object>, 'reason': <django.forms.fields.CharField object>}#
declared_fields = {}#
property media#

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

class events.forms.LatestNewsForm(*args, **kwargs)[source]#

Bases: Form

base_fields = {'latest_news': <django.forms.fields.CharField object>}#
declared_fields = {'latest_news': <django.forms.fields.CharField object>}#
property media#

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

class events.forms.NewCongressForm(*args, **kwargs)[source]#

Bases: Form

base_fields = {'congress': <django.forms.fields.IntegerField object>, 'congress_master': <django.forms.fields.IntegerField object>, 'org': <django.forms.fields.ChoiceField object>}#
declared_fields = {'congress': <django.forms.fields.IntegerField object>, 'congress_master': <django.forms.fields.IntegerField object>, 'org': <django.forms.fields.ChoiceField object>}#
property media#

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

class events.forms.OffSystemPPForm(*args, **kwargs)[source]#

Bases: Form

For off system PP payments

CARD_CHOICES = [('Dummy', 'Dummy')]#
base_fields = {'event_entry_players_list': <django.forms.fields.MultipleChoiceField object>}#
declared_fields = {'event_entry_players_list': <django.forms.fields.MultipleChoiceField object>}#
property media#

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

class events.forms.PartnershipForm(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)[source]#

Bases: ModelForm

class Meta[source]#

Bases: object

fields = ('event', 'private', 'comment', 'player')#
model#

alias of PartnershipDesk

base_fields = {'comment': <django.forms.fields.CharField object>, 'event': <django.forms.models.ModelChoiceField object>, 'player': <django.forms.models.ModelChoiceField object>, 'private': <django.forms.fields.BooleanField object>}#
declared_fields = {}#
property media#

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

class events.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, field_order=None, use_required_attribute=None, renderer=None, bound_field_class=None)[source]#

Bases: Form

base_fields = {'player': <django.forms.fields.CharField object>, 'player_id': <django.forms.fields.IntegerField object>, 'refund': <django.forms.fields.DecimalField object>}#
declared_fields = {'player': <django.forms.fields.CharField object>, 'player_id': <django.forms.fields.IntegerField object>, 'refund': <django.forms.fields.DecimalField object>}#
property media#

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

class events.forms.SessionForm(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)[source]#

Bases: ModelForm

class Meta[source]#

Bases: object

fields = ('session_date', 'session_start', 'session_end')#
model#

alias of Session

base_fields = {'session_date': <django.forms.fields.DateField object>, 'session_end': <django.forms.fields.TimeField object>, 'session_start': <django.forms.fields.TimeField object>}#
declared_fields = {}#
property media#

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

events.models module#

class events.models.BasketItem(*args, **kwargs)[source]#

Bases: Model

items in a basket. We don’t define basket itself as it isn’t needed

exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

event_entry#

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.

event_entry_id#
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>#
player#

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.

player_id#
class events.models.Bulletin(*args, **kwargs)[source]#

Bases: Model

Regular PDF bulletins for congresses

exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

congress#

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.

congress_id#
create_date#

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

description#

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

document#

The descriptor for the file attribute on the model instance. Return a FieldFile when accessed so you can write code like:

>>> from myapp.models import MyModel
>>> instance = MyModel.objects.get(pk=1)
>>> instance.file.size

Assign a file object on assignment so you can do:

>>> with open('/path/to/hello.world') as f:
...     instance.file = File(f)
get_next_by_create_date(*, field=<django.db.models.fields.DateTimeField: create_date>, is_next=True, **kwargs)#
get_previous_by_create_date(*, field=<django.db.models.fields.DateTimeField: create_date>, is_next=False, **kwargs)#
id#

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

objects = <django.db.models.manager.Manager object>#
class events.models.Category(*args, **kwargs)[source]#

Bases: Model

Event Categories such as <100 MPs or club members etc. Free format.

exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

description#

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

event#

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

event_id#
evententry_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.

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(*args, **kwargs)[source]#

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

class events.models.Congress(*args, **kwargs)[source]#

Bases: Model

A specific congress including year

We set all values to be optional so we can use the wizard format and save partial data as we go. The validation for completeness of data lies in the view.

class CongressVenueType(*values)[source]#

Bases: TextChoices

Face to Face, Online

FACE_TO_FACE = 'F'#
MIXED = 'M'#
ONLINE = 'O'#
UNKNOWN = 'U'#
exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

class OnlinePlatform(*values)[source]#

Bases: TextChoices

BBO = 'B'#
MS_TEAMS = 'T'#
REAL_BRIDGE = 'R'#
STEP_BRIDGE = 'S'#
UNKNOWN = 'U'#
ZOOM = 'Z'#
additional_info#

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

allow_early_payment_discount#

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

allow_member_entry_fee#

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

allow_partnership_desk#

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

allow_youth_payment_discount#

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

author#

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.

author_id#
automatic_refund_cutoff#

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

bank_transfer_details#

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

bulletin_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.

cheque_details#

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

congress_master#

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.

congress_master_id#
congress_type#

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

congress_venue_type#

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

congressdownload_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.

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.

congressnewsitem_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.

contact_email#

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

created_date#

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

date_string#

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

do_not_auto_close_congress#

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

early_payment_discount_date#

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

end_date#

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

entry_close_date#

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

entry_open_date#

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

event_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.

general_info#

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

get_congress_type_display(*, field=<django.db.models.fields.CharField: congress_type>)#
get_congress_venue_type_display(*, field=<django.db.models.fields.CharField: congress_venue_type>)#
get_next_by_created_date(*, field=<django.db.models.fields.DateTimeField: created_date>, is_next=True, **kwargs)#
get_next_by_last_updated(*, field=<django.db.models.fields.DateTimeField: last_updated>, is_next=True, **kwargs)#
get_online_platform_display(*, field=<django.db.models.fields.CharField: online_platform>)#
get_payment_methods()[source]#

get a list of payment types for this congress. Excludes other-system-dollars as this isn’t applicable for the logged in user and is easier to add to the list than remove

get_previous_by_created_date(*, field=<django.db.models.fields.DateTimeField: created_date>, is_next=False, **kwargs)#
get_previous_by_last_updated(*, field=<django.db.models.fields.DateTimeField: last_updated>, is_next=False, **kwargs)#
get_status_display(*, field=<django.db.models.fields.CharField: status>)#
property href#

Returns an HTML link tag that can be used to go to the congress admin screen

id#

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

last_updated#

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

last_updated_by#

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

last_updated_by_id#
latest_news#

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.

members_only#

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

name#

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

objects = <django.db.models.manager.Manager object>#
online_platform#

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

payment_method_bank_transfer#

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

payment_method_cash#

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

payment_method_cheques#

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

payment_method_off_system_pp#

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

payment_method_system_dollars#

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

people#

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

raw_html#

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

save(*args, **kwargs)[source]#

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

senior_age#

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

senior_date#

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

sponsors#

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

start_date#

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

status#

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

user_is_convener(user)[source]#

check if a user has convener rights to this congress

venue_additional_info#

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

venue_catering#

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

venue_location#

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

venue_name#

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

venue_transport#

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

year#

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

youth_payment_discount_age#

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

youth_payment_discount_date#

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

class events.models.CongressDownload(*args, **kwargs)[source]#

Bases: Model

Documents associated with the congress that a convener wants on the congress page

exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

congress#

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.

congress_id#
create_date#

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

description#

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

document#

The descriptor for the file attribute on the model instance. Return a FieldFile when accessed so you can write code like:

>>> from myapp.models import MyModel
>>> instance = MyModel.objects.get(pk=1)
>>> instance.file.size

Assign a file object on assignment so you can do:

>>> with open('/path/to/hello.world') as f:
...     instance.file = File(f)
get_next_by_create_date(*, field=<django.db.models.fields.DateTimeField: create_date>, is_next=True, **kwargs)#
get_previous_by_create_date(*, field=<django.db.models.fields.DateTimeField: create_date>, is_next=False, **kwargs)#
id#

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

objects = <django.db.models.manager.Manager object>#

Bases: Model

Link Items for Congresses

exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

congress#

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.

congress_id#
id#

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.

objects = <django.db.models.manager.Manager object>#
class events.models.CongressMaster(*args, **kwargs)[source]#

Bases: Model

Master List of congresses. E.g. GCC. This is not an instance of a congress, just a list of the regular recurring ones. Congresses can only belong to one club at a time. Control for who can setup a congress as an instance of a congress master is handled by who is a convener for a club

exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

congress_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.

id#

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

name#

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

objects = <django.db.models.manager.Manager object>#
org#

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.

org_id#
class events.models.CongressNewsItem(*args, **kwargs)[source]#

Bases: Model

News Items for Congresses

exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

congress#

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.

congress_id#
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(*args, **kwargs)[source]#

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

text#

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

class events.models.Event(*args, **kwargs)[source]#

Bases: Model

An event within a congress

exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

allow_team_names#

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

already_entered(user)[source]#

check if a user has already entered

category_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.

congress#

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.

congress_id#
denormalised_end_date#

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

denormalised_end_time#

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

denormalised_start_date#

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

denormalised_start_time#

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

description#

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

end_date()[source]#

Originally we didn’t have an end date and this function calculated it

entry_close_date#

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

entry_close_time#

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

entry_early_payment_discount#

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

entry_fee#

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

entry_fee_for(user, check_date=None, actual_team_size=None)[source]#

return entry fee for user based on age and date. Also any EventPlayerDiscount applied We accept a check_date to work out what the entry fee would be for that date, if not provided then we use today.

entry_open_date#

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

entry_status(user)[source]#

returns the status of the team/pairs/individual entry

entry_youth_payment_discount#

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

event_name#

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

event_type#

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

evententry_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.

eventlog_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.

eventplayerdiscount_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.

free_format_question#

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

get_event_type_display(*, field=<django.db.models.fields.CharField: event_type>)#
get_player_format_display(*, field=<django.db.models.fields.CharField: player_format>)#
property href#

Returns an HTML link tag that can be used to go to the event log

id#

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

is_full()[source]#

check if event is already full

is_open()[source]#

check if this event is taking entries today

is_open_with_reason()[source]#

check if this event is taking entries today and explain why

list_priority_order#

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

max_entries#

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

member_entry_fee#

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>#
partnershipdesk_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.

player_format#

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

print_dates()[source]#

returns nicely formatted date string for event

save(*args, **kwargs)[source]#

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

session_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.

start_date()[source]#

Originally we didn’t have a start date and this function calculated it

start_time()[source]#

Originally we didn’t have a start time and this function calculated it

class events.models.EventEntry(*args, **kwargs)[source]#

Bases: Model

An entry to an event

exception DoesNotExist#

Bases: ObjectDoesNotExist

class EntryStatus(*values)[source]#

Bases: TextChoices

CANCELLED = 'Cancelled'#
COMPLETE = 'Complete'#
IN_BASKET = 'In Cart'#
PENDING = 'Pending'#
exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

basketitem_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.

property can_recalculate#

Return whether the entry fees can be recalculated, ie a teams event with more than 4 entries and no payments made

category#

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.

category_id#
check_if_paid()[source]#

go through sub level event entry players and see if this is now complete as well.

comment#

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

entry_complete_date#

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

entry_status#

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

event#

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

event_id#
evententryplayer_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.

eventlog_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.

first_created_date#

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

free_format_answer#

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

get_entry_status_display(*, field=<django.db.models.fields.CharField: entry_status>)#
get_next_by_first_created_date(*, field=<django.db.models.fields.DateTimeField: first_created_date>, is_next=True, **kwargs)#
get_previous_by_first_created_date(*, field=<django.db.models.fields.DateTimeField: first_created_date>, is_next=False, **kwargs)#
get_team_name()[source]#

If the team name field is None we default the team name to the surname of the primary entrant. We also return it in uppercase and truncate to 15 chars

property href#

Returns an HTML link tag that can be used to go to the event entry view

id#

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

notes#

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

objects = <django.db.models.manager.Manager object>#
ordered_event_entry_player()[source]#

helper function to set order of queryset for event_entry_player

property paying_players#

return the number of players in the entry who are paying (ie not Free)

primary_entrant#

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.

primary_entrant_id#
recalculate_fees(default_payment_type='my-system-dollars')[source]#

Recalculate the entry fees for an existing team entry of 5/6 Returns success or failure. default_payment_type is used for player entries that were previously free. Note: the EventEntryPlayer objects must already exist and will be updated

save(*args, **kwargs)[source]#

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

team_name#

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

user_can_change(member)[source]#

Check if a user has access to change this entry.

Either the primary_entrant who created the entry or any of the players can change the entry.

class events.models.EventEntryPlayer(*args, **kwargs)[source]#

Bases: Model

A player who is entering an event

exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

batch_id#

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

entry_complete_date#

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

entry_fee#

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

event_entry#

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.

event_entry_id#
first_created_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_first_created_date(*, field=<django.db.models.fields.DateTimeField: first_created_date>, is_next=True, **kwargs)#
get_payment_status_display(*, field=<django.db.models.fields.CharField: payment_status>)#
get_payment_type_display(*, field=<django.db.models.fields.CharField: payment_type>)#
get_previous_by_first_created_date(*, field=<django.db.models.fields.DateTimeField: first_created_date>, is_next=False, **kwargs)#
id#

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

objects = <django.db.models.manager.Manager object>#
override_tba_name#

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

override_tba_system_number#

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

paid_by#

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

paid_by_id#
payment_received#

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

payment_status#

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

payment_type#

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

player#

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.

player_id#
reason#

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

save(*args, **kwargs)[source]#

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

class events.models.EventLog(*args, **kwargs)[source]#

Bases: Model

log of things that happen within an event

exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

action#

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

action_date#

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

actor#

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.

actor_id#
event#

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

event_entry#

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.

event_entry_id#
event_id#
get_next_by_action_date(*, field=<django.db.models.fields.DateTimeField: action_date>, is_next=True, **kwargs)#
get_previous_by_action_date(*, field=<django.db.models.fields.DateTimeField: action_date>, is_next=False, **kwargs)#
id#

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

objects = <django.db.models.manager.Manager object>#
class events.models.EventPlayerDiscount(*args, **kwargs)[source]#

Bases: Model

Maps player discounts to events. For example if someone is given free entry to an event.

exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

admin#

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.

admin_id#
create_date#

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

entry_fee#

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

event#

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

event_id#
get_next_by_create_date(*, field=<django.db.models.fields.DateTimeField: create_date>, is_next=True, **kwargs)#
get_previous_by_create_date(*, field=<django.db.models.fields.DateTimeField: create_date>, is_next=False, **kwargs)#
id#

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

objects = <django.db.models.manager.Manager object>#
player#

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.

player_id#
reason#

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

class events.models.PartnershipDesk(*args, **kwargs)[source]#

Bases: Model

Partnership Desk players looking for partners

exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

comment#

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

create_date#

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

event#

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

event_id#
get_next_by_create_date(*, field=<django.db.models.fields.DateTimeField: create_date>, is_next=True, **kwargs)#
get_previous_by_create_date(*, field=<django.db.models.fields.DateTimeField: create_date>, is_next=False, **kwargs)#
id#

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

objects = <django.db.models.manager.Manager object>#
player#

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.

player_id#
private#

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

save(*args, **kwargs)[source]#

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

class events.models.PlayerBatchId(*args, **kwargs)[source]#

Bases: Model

Maps a batch Id associated with a payment to the user who made the payment. We use the same approach for all players so can’t assume it will be the primary entrant.

exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

batch_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.

objects = <django.db.models.manager.Manager object>#
player#

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.

player_id#
class events.models.Session(*args, **kwargs)[source]#

Bases: Model

A session within an event

exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

event#

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

event_id#
get_next_by_session_date(*, field=<django.db.models.fields.DateField: session_date>, is_next=True, **kwargs)#
get_previous_by_session_date(*, field=<django.db.models.fields.DateField: session_date>, is_next=False, **kwargs)#
property href#

Returns an HTML link tag that can be used to go to the session edit screen

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>#
session_date#

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

session_end#

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

session_start#

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

events.urls module#

Module contents#