AlekSIS
AlekSIS

Managers

class aleksis.core.managers.CurrentSiteManagerWithoutMigrations(*args, **kwargs)[source]

CurrentSiteManager for auto-generating managers just by query sets.

class aleksis.core.managers.DateRangeQuerySetMixin[source]

QuerySet with custom query methods for models with date ranges.

Filterable fields: date_start, date_end

in_week(wanted_week)[source]

Filter for all objects within a calendar week.

on_day(day)[source]

Filter for all objects on a certain day.

within_dates(start, end)[source]

Filter for all objects within a date range.

class aleksis.core.managers.GroupManager(*args, **kwargs)[source]

Manager adding specific methods to groups.

get_queryset()[source]

Ensure all related data is loaded as well.

class aleksis.core.managers.GroupQuerySet(model=None, query=None, using=None, hints=None)[source]
class aleksis.core.managers.InstalledWidgetsDashboardWidgetOrderManager(*args, **kwargs)[source]

A manager that only returns DashboardWidgetOrder objects with an existing widget.

get_queryset()[source]

Return a new QuerySet object. Subclasses can override this method to customize the behavior of the Manager.

class aleksis.core.managers.PolymorphicCurrentSiteManager(*args, **kwargs)[source]

Default manager for extensible, polymorphic models.

class aleksis.core.managers.SchoolTermQuerySet(model=None, query=None, using=None, hints=None)[source]

Custom query set for school terms.

class aleksis.core.managers.SchoolTermRelatedQuerySet(model=None, query=None, using=None, hints=None)[source]

Custom query set for all models related to school terms.

for_current_school_term_or_all()[source]

Get all objects related to current school term.

If there is no current school term, it will return all objects.

Return type

SchoolTermRelatedQuerySet

for_current_school_term_or_none()[source]

Get all objects related to current school term.

If there is no current school term, it will return None.

Return type

Optional[SchoolTermRelatedQuerySet]

in_week(wanted_week)[source]

Filter for all objects within a calendar week.

Return type

SchoolTermRelatedQuerySet

on_day(day)[source]

Filter for all objects on a certain day.

Return type

SchoolTermRelatedQuerySet

within_dates(start, end)[source]

Filter for all objects within a date range.

Return type

SchoolTermRelatedQuerySet

class aleksis.core.managers.UninstallRenitentPolymorphicManager(*args, **kwargs)[source]

A custom manager for django-polymorphic that filters out submodels of unavailable apps.

get_queryset()[source]

Return a new QuerySet object. Subclasses can override this method to customize the behavior of the Manager.