intranet.apps.eighth.views package¶
Subpackages¶
- intranet.apps.eighth.views.admin package
- Submodules
- intranet.apps.eighth.views.admin.activities module
- intranet.apps.eighth.views.admin.attendance module
- intranet.apps.eighth.views.admin.blocks module
- intranet.apps.eighth.views.admin.general module
- intranet.apps.eighth.views.admin.groups module
EighthAdminDistributeGroupWizard
EighthAdminDistributeGroupWizard.FORMS
EighthAdminDistributeGroupWizard.TEMPLATES
EighthAdminDistributeGroupWizard.dispatch()
EighthAdminDistributeGroupWizard.done()
EighthAdminDistributeGroupWizard.get_context_data()
EighthAdminDistributeGroupWizard.get_form_kwargs()
EighthAdminDistributeGroupWizard.get_template_names()
EighthAdminSignUpGroupWizard
add_group_view()
add_member_to_group_view()
delete_empty_groups_view()
delete_group_view()
download_group_csv_view()
edit_group_view()
eighth_admin_distribute_action()
eighth_admin_distribute_group()
eighth_admin_distribute_unsigned()
eighth_admin_perform_group_signup()
eighth_admin_signup_group()
eighth_admin_signup_group_action()
find_users_input()
get_file_string()
get_user_info()
handle_group_input()
remove_member_from_group_view()
upload_group_members_view()
- intranet.apps.eighth.views.admin.hybrid module
- intranet.apps.eighth.views.admin.maintenance module
- intranet.apps.eighth.views.admin.rooms module
- intranet.apps.eighth.views.admin.scheduling module
- intranet.apps.eighth.views.admin.sponsors module
- intranet.apps.eighth.views.admin.users module
- Module contents
Submodules¶
intranet.apps.eighth.views.activities module¶
- intranet.apps.eighth.views.activities.calculate_statistics(activity, start_date=None, all_years=False, year=None, future=False)[source]¶
intranet.apps.eighth.views.api module¶
- class intranet.apps.eighth.views.api.BlockPagination[source]¶
Bases:
PageNumberPagination
- max_page_size = 200¶
- page_size = 50¶
- page_size_query_param = 'page_size'¶
- class intranet.apps.eighth.views.api.EighthActivityDetail(**kwargs)[source]¶
Bases:
RetrieveAPIView
API endpoint that shows details of an eighth activity.
- permission_classes = (<class 'intranet.apps.eighth.views.api.IsAuthenticatedOrClientCredentials'>,)¶
- queryset¶
- serializer_class¶
alias of
EighthActivityDetailSerializer
- class intranet.apps.eighth.views.api.EighthActivityList(**kwargs)[source]¶
Bases:
ListAPIView
- permission_classes = (<class 'intranet.apps.eighth.views.api.IsAuthenticatedOrClientCredentials'>,)¶
- queryset¶
- serializer_class¶
alias of
EighthActivityListSerializer
- class intranet.apps.eighth.views.api.EighthBlockDetail(**kwargs)[source]¶
Bases:
APIView
API endpoint that shows details for an eighth block.
- permission_classes = (<class 'intranet.apps.eighth.views.api.IsAuthenticatedOrClientCredentials'>,)¶
- class intranet.apps.eighth.views.api.EighthBlockList(**kwargs)[source]¶
Bases:
ListAPIView
API endpoint that lists all eighth blocks.
- pagination_class¶
alias of
BlockPagination
- permission_classes = (<class 'intranet.apps.eighth.views.api.IsAuthenticatedOrClientCredentials'>,)¶
- serializer_class¶
alias of
EighthBlockListSerializer
- class intranet.apps.eighth.views.api.EighthScheduledActivitySignupList(**kwargs)[source]¶
Bases:
APIView
API endpoint that lists all signups for a certain scheduled activity.
- permission_classes = (<class 'intranet.apps.eighth.views.api.IsAuthenticatedOrClientCredentials'>,)¶
- class intranet.apps.eighth.views.api.EighthSignupDetail(**kwargs)[source]¶
Bases:
RetrieveAPIView
API endpoint that shows details of an eighth signup.
- permission_classes = (<class 'intranet.apps.eighth.views.api.IsAuthenticatedOrClientCredentials'>,)¶
- queryset¶
- serializer_class¶
alias of
EighthSignupSerializer
- class intranet.apps.eighth.views.api.EighthUserFavoritesAdd(**kwargs)[source]¶
Bases:
CreateAPIView
- permission_classes = (<class 'intranet.apps.eighth.views.api.IsAuthenticatedOrClientCredentials'>,)¶
- queryset¶
- serializer_class¶
alias of
EighthActivityDetailSerializer
- class intranet.apps.eighth.views.api.EighthUserFavoritesListToggle(**kwargs)[source]¶
Bases:
ListCreateAPIView
- permission_classes = (<class 'intranet.apps.eighth.views.api.IsAuthenticatedOrClientCredentials'>,)¶
- queryset¶
- serializer_class¶
alias of
EighthToggleFavoriteSerializer
- class intranet.apps.eighth.views.api.EighthUserFavoritesRemove(**kwargs)[source]¶
Bases:
ListCreateAPIView
- permission_classes = (<class 'intranet.apps.eighth.views.api.IsAuthenticatedOrClientCredentials'>,)¶
- queryset¶
- serializer_class¶
alias of
EighthActivityListSerializer
intranet.apps.eighth.views.attendance module¶
- class intranet.apps.eighth.views.attendance.EighthAttendanceSelectScheduledActivityWizard(**kwargs)[source]¶
Bases:
SessionWizardView
- FORMS = [('block', <class 'intranet.apps.eighth.forms.admin.blocks.BlockSelectionForm'>), ('activity', <class 'intranet.apps.eighth.forms.admin.activities.ActivitySelectionForm'>)]¶
- TEMPLATES = {'activity': 'eighth/take_attendance.html', 'block': 'eighth/take_attendance.html'}¶
- intranet.apps.eighth.views.attendance.accept_all_passes_view(request, scheduled_activity_id)[source]¶
- intranet.apps.eighth.views.attendance.admin_choose_scheduled_activity_view(self, request, *args, **kwargs)¶
- intranet.apps.eighth.views.attendance.generate_roster_pdf(sched_act_ids)[source]¶
Generates a PDF roster for one or more.
EighthScheduledActivity
s.- Args
- sched_act_ids
The list of IDs of the scheduled activities to show in the PDF.
Returns a BytesIO object for the PDF.
- intranet.apps.eighth.views.attendance.teacher_choose_scheduled_activity_view(self, request, *args, **kwargs)¶
intranet.apps.eighth.views.monitoring module¶
intranet.apps.eighth.views.profile module¶
intranet.apps.eighth.views.routers module¶
Views that render different pages depending on the user that requests them.