intranet.apps.eighth.forms.admin package

Submodules

intranet.apps.eighth.forms.admin.activities module

class intranet.apps.eighth.forms.admin.activities.ActivityDisplayField(*args, **kwargs)[source]

Bases: django.forms.models.ModelChoiceField

cancelled_acts: List[EighthActivity] = None
label_from_instance(obj)[source]
class intranet.apps.eighth.forms.admin.activities.ActivityForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

fields = ['name', 'description', 'sponsors', 'rooms', 'default_capacity', 'id', 'presign', 'one_a_day', 'both_blocks', 'sticky', 'special', 'administrative', 'finance', 'restricted', 'users_allowed', 'groups_allowed', 'users_blacklisted', 'freshmen_allowed', 'sophomores_allowed', 'juniors_allowed', 'seniors_allowed', 'wed_a', 'wed_b', 'fri_a', 'fri_b', 'admin_comments']
model

alias of intranet.apps.eighth.models.EighthActivity

widgets = {'admin_comments': <django.forms.widgets.Textarea object>, 'description': <django.forms.widgets.Textarea object>, 'name': <django.forms.widgets.TextInput object>}
declared_fields = {}
class intranet.apps.eighth.forms.admin.activities.ActivityMultiDisplayField(queryset, **kwargs)[source]

Bases: django.forms.models.ModelMultipleChoiceField

label_from_instance(obj)[source]
class intranet.apps.eighth.forms.admin.activities.ActivityMultiSelectForm(*args, label='Activities', **kwargs)[source]

Bases: django.forms.forms.Form

declared_fields = {'activities': <intranet.apps.eighth.forms.admin.activities.ActivityMultiDisplayField object>}
class intranet.apps.eighth.forms.admin.activities.ActivitySelectionForm(*args, label='Activity', block=None, sponsor=None, include_cancelled=False, **kwargs)[source]

Bases: django.forms.forms.Form

declared_fields = {}
class intranet.apps.eighth.forms.admin.activities.QuickActivityForm(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: django.forms.models.ModelForm

class Meta[source]

Bases: object

fields = ['name']
model

alias of intranet.apps.eighth.models.EighthActivity

declared_fields = {}
class intranet.apps.eighth.forms.admin.activities.ScheduledActivityMultiSelectForm(*args, label='Activities', block=None, **kwargs)[source]

Bases: django.forms.forms.Form

declared_fields = {'activities': <intranet.apps.eighth.forms.admin.activities.ActivityMultiDisplayField object>}

intranet.apps.eighth.forms.admin.blocks module

class intranet.apps.eighth.forms.admin.blocks.BlockDisplayField(queryset, *, empty_label='---------', required=True, widget=None, label=None, initial=None, help_text='', to_field_name=None, limit_choices_to=None, **kwargs)[source]

Bases: django.forms.models.ModelChoiceField

label_from_instance(obj)[source]
class intranet.apps.eighth.forms.admin.blocks.BlockForm(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: django.forms.models.ModelForm

class Meta[source]

Bases: object

fields = ['date', 'block_letter', 'locked', 'signup_time', 'comments']
model

alias of intranet.apps.eighth.models.EighthBlock

declared_fields = {'block_letter': <django.forms.fields.CharField object>}
class intranet.apps.eighth.forms.admin.blocks.BlockSelectionForm(*args, label='Block', exclude_before_date=None, only_locked=False, **kwargs)[source]

Bases: django.forms.forms.Form

declared_fields = {}
class intranet.apps.eighth.forms.admin.blocks.QuickBlockForm(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: django.forms.models.ModelForm

class Meta[source]

Bases: object

fields = ['date', 'block_letter']
model

alias of intranet.apps.eighth.models.EighthBlock

declared_fields = {'block_letter': <django.forms.fields.CharField object>}

intranet.apps.eighth.forms.admin.general module

class intranet.apps.eighth.forms.admin.general.StartDateForm(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)[source]

Bases: django.forms.forms.Form

declared_fields = {'date': <django.forms.fields.DateField object>}

intranet.apps.eighth.forms.admin.groups module

class intranet.apps.eighth.forms.admin.groups.GroupForm(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: django.forms.models.ModelForm

class Meta[source]

Bases: object

fields = ['name', 'student_visible']
model

alias of intranet.apps.groups.models.Group

declared_fields = {'student_visible': <django.forms.fields.BooleanField object>}
class intranet.apps.eighth.forms.admin.groups.QuickGroupForm(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: django.forms.models.ModelForm

class Meta[source]

Bases: object

fields = ['name']
model

alias of intranet.apps.groups.models.Group

declared_fields = {}
class intranet.apps.eighth.forms.admin.groups.UploadGroupForm(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)[source]

Bases: django.forms.forms.Form

declared_fields = {'file': <django.forms.fields.FileField object>}

intranet.apps.eighth.forms.admin.rooms module

class intranet.apps.eighth.forms.admin.rooms.RoomForm(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: django.forms.models.ModelForm

class Meta[source]

Bases: object

fields = ['name', 'capacity', 'available_for_eighth']
model

alias of intranet.apps.eighth.models.EighthRoom

widgets = {'capacity': <django.forms.widgets.TextInput object>}
declared_fields = {}

intranet.apps.eighth.forms.admin.scheduling module

class intranet.apps.eighth.forms.admin.scheduling.ScheduledActivityForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

Represents a row in the table activity scheduling admin page.

class Meta[source]

Bases: object

fields = ['cancelled', 'scheduled', 'unschedule', 'block', 'activity', 'rooms', 'capacity', 'sponsors', 'title', 'special', 'administrative', 'restricted', 'sticky', 'both_blocks', 'comments', 'admin_comments']
model

alias of intranet.apps.eighth.models.EighthScheduledActivity

widgets = {'admin_comments': <django.forms.widgets.Textarea object>, 'capacity': <django.forms.widgets.TextInput object>, 'comments': <django.forms.widgets.Textarea object>, 'title': <django.forms.widgets.TextInput object>}
declared_fields = {'scheduled': <django.forms.fields.BooleanField object>, 'unschedule': <django.forms.fields.BooleanField object>}
validate_unique()[source]

intranet.apps.eighth.forms.admin.sponsors module

class intranet.apps.eighth.forms.admin.sponsors.AutoCreateUserField(*, choices=(), **kwargs)[source]

Bases: django.forms.fields.ChoiceField

clean(value)[source]
widget

alias of django.forms.widgets.TextInput

class intranet.apps.eighth.forms.admin.sponsors.SponsorForm(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: django.forms.models.ModelForm

class Meta[source]

Bases: object

fields = ['first_name', 'last_name', 'user', 'department', 'full_time', 'online_attendance', 'contracted_eighth', 'show_full_name']
model

alias of intranet.apps.eighth.models.EighthSponsor

declared_fields = {'user': <intranet.apps.eighth.forms.admin.sponsors.AutoCreateUserField object>}

Module contents