AlekSIS
AlekSIS

Core views

class aleksis.core.views.CeleryProgressView(**kwargs)[source]

Wrap celery-progress view to check permissions before.

class aleksis.core.views.CustomPasswordChangeView(*args, **kwargs)[source]

Custom password change view to allow to disable changing of password.

__init__(*args, **kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.

class aleksis.core.views.DashboardWidgetCreateView(**kwargs)[source]

Create view for dashboard widgets.

get(request, *args, **kwargs)[source]

Handle GET requests: instantiate a blank version of the form.

get_context_data(**kwargs)[source]

Insert the form into the context dict.

Return type

dict[str, Any]

post(request, *args, **kwargs)[source]

Handle POST requests: instantiate a form instance with the passed POST variables and then check if it’s valid.

class aleksis.core.views.DashboardWidgetDeleteView(**kwargs)[source]

Delete view for dashboard widgets.

model

alias of aleksis.core.models.DashboardWidget

class aleksis.core.views.DashboardWidgetEditView(**kwargs)[source]

Edit view for dashboard widgets.

get_form_class()[source]

Return the form class to use in this view.

Return type

Type[BaseModelForm]

model

alias of aleksis.core.models.DashboardWidget

class aleksis.core.views.DashboardWidgetListView(**kwargs)[source]

Table of all dashboard widgets.

get_context_data(**kwargs)[source]

Overridden version of .TemplateResponseMixin to inject the table into the template’s context.

Return type

dict[str, Any]

model

alias of aleksis.core.models.DashboardWidget

table_class

alias of aleksis.core.tables.DashboardWidgetTable

class aleksis.core.views.DataCheckView(**kwargs)[source]
get_context_data(**kwargs)[source]

Get the context for this view.

Return type

dict[str, Any]

get_queryset()[source]

Return the list of items for this view.

The return value must be an iterable and may be an instance of QuerySet in which case QuerySet specific behavior will be enabled.

Return type

QuerySet

model

alias of aleksis.core.models.DataCheckResult

class aleksis.core.views.EditDashboardView(**kwargs)[source]

View for editing dashboard widget order.

class aleksis.core.views.ManifestView(**kwargs)[source]

Build manifest.json for PWA.

class aleksis.core.views.NotificationsListView(**kwargs)[source]
get_context_data(**kwargs)[source]

Get the context for this view.

Return type

dict[str, Any]

get_queryset()[source]

Return the list of items for this view.

The return value must be an iterable and may be an instance of QuerySet in which case QuerySet specific behavior will be enabled.

Return type

QuerySet

class aleksis.core.views.OAuth2Delete(**kwargs)[source]

View used to delete an application.

get_queryset()[source]

Return the QuerySet that will be used to look up the object.

This method is called by the default implementation of get_object() and may not be called if get_object() is overridden.

class aleksis.core.views.OAuth2Detail(**kwargs)[source]

Detail view for an application instance.

get_queryset()[source]

Return the QuerySet that will be used to look up the object.

This method is called by the default implementation of get_object() and may not be called if get_object() is overridden.

class aleksis.core.views.OAuth2List(**kwargs)[source]

List view for all the applications.

get_queryset()[source]

Return the list of items for this view.

The return value must be an iterable and may be an instance of QuerySet in which case QuerySet specific behavior will be enabled.

class aleksis.core.views.OAuth2Update(**kwargs)[source]

View used to update an application.

get_form_class()[source]

Return the form class for the application model.

get_queryset()[source]

Return the QuerySet that will be used to look up the object.

This method is called by the default implementation of get_object() and may not be called if get_object() is overridden.

class aleksis.core.views.OfflineView(**kwargs)[source]

Show an error page if there is no internet connection.

class aleksis.core.views.PermissionSearchView(**kwargs)[source]

Wrapper to apply permission to haystack’s search view.

get_context_data(*, object_list=None, **kwargs)[source]

Get the context for this view.

class aleksis.core.views.RedirectToPDFFile(**kwargs)[source]

Redirect to a generated PDF file.

model

alias of aleksis.core.models.PDFFile

class aleksis.core.views.RenderPDFView(**kwargs)[source]

View to render a PDF file from a template.

Makes use of render_pdf.

class aleksis.core.views.RunDataChecks(**kwargs)[source]
class aleksis.core.views.SchoolTermCreateView(**kwargs)[source]

Create view for school terms.

form_class

alias of aleksis.core.forms.SchoolTermForm

model

alias of aleksis.core.models.SchoolTerm

class aleksis.core.views.SchoolTermEditView(**kwargs)[source]

Edit view for school terms.

form_class

alias of aleksis.core.forms.SchoolTermForm

model

alias of aleksis.core.models.SchoolTerm

class aleksis.core.views.SchoolTermListView(**kwargs)[source]

Table of all school terms.

model

alias of aleksis.core.models.SchoolTerm

table_class

alias of aleksis.core.tables.SchoolTermTable

class aleksis.core.views.ServiceWorkerView(**kwargs)[source]

Render serviceworker.js under root URL.

This can’t be done by static files, because the PWA has a scope and only accepts service worker files from the root URL.

class aleksis.core.views.SocialAccountDeleteView(**kwargs)[source]

Custom view to delete django-allauth social account.

delete(request, *args, **kwargs)[source]

Call the delete() method on the fetched object and then redirect to the success URL.

get_queryset()[source]

Return the QuerySet that will be used to look up the object.

This method is called by the default implementation of get_object() and may not be called if get_object() is overridden.

class aleksis.core.views.SolveDataCheckView(*args, **kwargs)[source]
class aleksis.core.views.SystemStatus(**kwargs)[source]

View giving information about the system status.

class aleksis.core.views.TestPDFGenerationView(**kwargs)[source]
aleksis.core.views.about(request)[source]

About page listing all apps.

Return type

HttpResponse

aleksis.core.views.additional_fields(request)[source]

List view for listing all additional fields.

Return type

HttpResponse

aleksis.core.views.announcement_form(request, id_=None)[source]

View to create or edit an announcement.

Return type

HttpResponse

aleksis.core.views.announcements(request)[source]

List view of announcements.

Return type

HttpResponse

aleksis.core.views.data_management(request)[source]

View with special menu for data management.

Return type

HttpResponse

aleksis.core.views.delete_additional_field(request, id_)[source]

View to delete an additional field.

Return type

HttpResponse

aleksis.core.views.delete_announcement(request, id_)[source]

View to delete an announcement.

Return type

HttpResponse

aleksis.core.views.delete_group(request, id_)[source]

View to delete an group.

Return type

HttpResponse

aleksis.core.views.delete_group_type(request, id_)[source]

View to delete an group_type.

Return type

HttpResponse

aleksis.core.views.delete_person(request, id_)[source]

View to delete an person.

Return type

HttpResponse

aleksis.core.views.edit_additional_field(request, id_=None)[source]

View to edit or create a additional_field.

Return type

HttpResponse

aleksis.core.views.edit_group(request, id_=None)[source]

View to edit or create a group.

Return type

HttpResponse

aleksis.core.views.edit_group_type(request, id_=None)[source]

View to edit or create a group_type.

Return type

HttpResponse

aleksis.core.views.edit_person(request, id_=None)[source]

Edit view for a single person, defaulting to logged-in person.

Return type

HttpResponse

aleksis.core.views.group(request, id_)[source]

Detail view for one group.

Return type

HttpResponse

aleksis.core.views.group_types(request)[source]

List view for listing all group types.

Return type

HttpResponse

aleksis.core.views.groups(request)[source]

List view for listing all groups.

Return type

HttpResponse

aleksis.core.views.groups_child_groups(request)[source]

View for batch-processing assignment from child groups to groups.

Return type

HttpResponse

aleksis.core.views.index(request)[source]

View for dashboard.

Return type

HttpResponse

aleksis.core.views.notification_mark_read(request, id_)[source]

Mark a notification read.

Return type

HttpResponse

aleksis.core.views.person(request, id_=None)[source]

Detail view for one person; defaulting to logged-in person.

Return type

HttpResponse

aleksis.core.views.persons(request)[source]

List view listing all persons.

Return type

HttpResponse

aleksis.core.views.persons_accounts(request)[source]

View allowing to batch-process linking of users to persons.

Return type

HttpResponse

aleksis.core.views.preferences(request, registry_name='person', pk=None, section=None)[source]

View for changing preferences.

Return type

HttpResponse

aleksis.core.views.searchbar_snippets(request)[source]

View to return HTML snippet with searchbar autocompletion results.

Return type

HttpResponse

aleksis.core.views.server_error(request, template_name='500.html')[source]

Ensure the request is passed to the error page.

Return type

HttpResponseServerError