physics_workload.app.models.standard_load¶
Attributes¶
Classes¶
Standard loads for an academic year |
Module Contents¶
- physics_workload.app.models.standard_load.logger: logging.Logger¶
- class physics_workload.app.models.standard_load.StandardLoad¶
Bases:
app.models.common.ModelCommon
Standard loads for an academic year
- icon = 'weight-hanging'¶
- url_root = 'standard_load'¶
- year¶
- load_lecture¶
- load_lecture_first¶
- load_coursework_set¶
- load_coursework_credit¶
- load_coursework_marked¶
- load_exam_credit¶
- load_exam_marked¶
- load_fte_misc¶
- target_load_per_fte¶
- target_load_per_fte_calc¶
- notes¶
- class Meta¶
- get_latest_by = 'year'¶
- ordering = ['-year']¶
- verbose_name = 'Standard Load'¶
- verbose_name_plural = 'Standard Loads'¶
- __str__() str ¶
- get_absolute_url() str ¶
The standard load is always :return:
- get_instance_header(text: str | None = None, suffix: str | None = None) str ¶
Prepend the instance name with ‘Standard Load’ for clarity :return: Header in the format “Standard Load ??/??”
- has_access(user: django.contrib.auth.models.AbstractUser | django.contrib.auth.models.AnonymousUser) bool ¶
You can always see the load details :param user: The user to test access for. :return: True, always
- update_target_load_per_fte()¶
- Returns:
- update_calculated_loads(previous_standard_load: StandardLoad = None) bool ¶
- Parameters:
previous_standard_load – The previous version of the standard loads.
- Returns:
True if other models were updated, False otherwise.