physics_workload.app.models.info¶
Classes¶
Used for user-editable info text at the top of forms or categories. |
Module Contents¶
- class physics_workload.app.models.info.Info¶
Bases:
app.models.common.ModelCommon
Used for user-editable info text at the top of forms or categories.
- icon = 'circle-info'¶
- url_root = 'info'¶
- name: django.db.models.CharField¶
- page: django.db.models.CharField¶
- text: django.db.models.TextField¶
- __str__()¶
- Returns:
The URL route for the page.
- get_absolute_url() str ¶
- Returns:
The URL of the edit view for the info
- get_edit_url() str ¶
- Returns:
- has_access(user: django.contrib.auth.models.AbstractUser) bool ¶
Only users assigned to a task can see the details :param user: The user :return: True if the user is assigned to this task