events package#
Subpackages#
- events.views package
- Submodules
- events.views.ajax module
add_category_ajax()
add_player_to_existing_entry_ajax()
admin_delete_bulletin_ajax()
admin_delete_download_ajax()
admin_event_entry_notes_ajax()
admin_offsystem_pay_ajax()
admin_offsystem_pay_pp_ajax()
admin_offsystem_unpay_ajax()
admin_offsystem_unpay_pp_ajax()
admin_player_discount_delete_ajax()
change_answer_on_existing_entry_ajax()
change_category_on_existing_entry_ajax()
change_payment_method_on_existing_entry_ajax()
change_player_entry_ajax()
check_player_entry_ajax()
check_player_is_member_ajax()
clear_congress_view_filters_ajax()
contact_partnership_desk_person_ajax()
delete_basket_item_ajax()
delete_category_ajax()
delete_event_ajax()
delete_me_from_partnership_desk()
delete_player_from_entry_ajax()
delete_session_ajax()
edit_category_ajax()
edit_comment_event_entry_ajax()
edit_team_name_event_entry_ajax()
fee_for_user_ajax()
get_all_congress_ajax()
get_congress_ajax()
get_congress_master_ajax()
get_conveners_ajax()
get_player_payment_amount_ajax()
give_player_refund_ajax()
load_congress_view_filters_ajax()
payment_options_for_user_ajax()
recalculate_team_fees_ajax()
recalculate_team_fees_on_edit_ajax()
save_congress_view_filters_ajax()
- events.views.congress_admin module
admin_bulletins()
admin_congress_csv_scoring()
admin_congress_email()
admin_event_csv()
admin_event_csv_scoring()
admin_event_email()
admin_event_entry_add()
admin_event_entry_change_category_htmx()
admin_event_entry_player_add()
admin_event_entry_player_delete()
admin_event_entry_recalculate_htmx()
admin_event_log()
admin_event_offsystem()
admin_event_offsystem_pp()
admin_event_offsystem_pp_batch()
admin_event_payment_methods()
admin_event_payment_methods_csv()
admin_event_player_discount()
admin_event_summary()
admin_event_unpaid()
admin_evententry()
admin_evententry_delete()
admin_evententryplayer()
admin_latest_news()
admin_move_entry()
admin_players_report()
admin_summary()
admin_unpaid_email()
congress_finished_with_overdue_payments_htmx()
convener_settings()
edit_player_name_htmx()
edit_tba_player_details_htmx()
edit_team_name_htmx()
get_player_mp_stats()
initiate_admin_congress_email()
initiate_admin_event_email()
initiate_admin_unpaid_email()
player_events_list()
- events.views.congress_builder module
copy_congress_from_another()
create_congress_wizard()
create_congress_wizard_1()
create_congress_wizard_2()
create_congress_wizard_3()
create_congress_wizard_4()
create_congress_wizard_5()
create_congress_wizard_6()
create_congress_wizard_7()
create_event()
create_session()
delete_congress()
edit_event()
edit_session()
manage_congress_download()
slug_handler_htmx()
update_event_start_and_end_times()
view_draft_congresses()
- events.views.core module
convener_wishes_to_be_notified()
events_payments_primary_callback()
events_payments_secondary_callback()
events_status_summary()
fix_closed_congress()
get_basket_for_user()
get_completed_congresses_with_money_due()
get_conveners_for_congress()
get_event_entry_players_needing_attention()
get_event_statistics()
get_events()
notify_conveners()
send_email_to_player_entered_into_event_by_another()
sort_events_by_start_date()
- events.views.global_admin module
- events.views.views module
checkout()
congress_listing()
congress_listing_data_backwards()
congress_listing_data_htmx()
congress_listing_logged_out()
delete_event_entry()
edit_event_entry()
enter_event()
enter_event_non_post()
enter_event_payment_fail()
enter_event_post()
enter_event_success()
get_other_entries_to_event_for_user_htmx()
partnership_desk_signup()
pay_outstanding()
show_congresses_for_club_htmx()
third_party_checkout_entry()
third_party_checkout_player()
view_congress()
view_event_entries()
view_event_partnership_desk()
view_events()
- Module contents
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')#
- 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#
events.apps module#
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
- 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')#
- 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>}#
- 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>}#
- 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>}#
- 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')#
- 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_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.
- 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
- 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 aForwardManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aReverseManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aReverseManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- congresslink_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- 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 aReverseManyToOneDescriptor
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 aReverseManyToOneDescriptor
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 aForwardManyToOneDescriptor
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.
- links#
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.
- 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 aForwardManyToOneDescriptor
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.CongressLink(*args, **kwargs)[source]#
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 aForwardManyToOneDescriptor
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.
- link#
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 aReverseManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aForwardManyToOneDescriptor
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.
- 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 aReverseManyToOneDescriptor
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 aForwardManyToOneDescriptor
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.
- 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_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 aReverseManyToOneDescriptor
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 aReverseManyToOneDescriptor
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 aReverseManyToOneDescriptor
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.
- 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 aReverseManyToOneDescriptor
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.
- 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 aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- 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 aReverseManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aReverseManyToOneDescriptor
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 aReverseManyToOneDescriptor
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 aForwardManyToOneDescriptor
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.
- 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 aForwardManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aForwardManyToOneDescriptor
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 aForwardManyToOneDescriptor
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.