Changeset View
Changeset View
Standalone View
Standalone View
training/models/sections.py
| from django.db import models | from django.db import models | ||||
| from django.urls.base import reverse | from django.urls.base import reverse | ||||
| from django.utils.text import slugify | from django.utils.text import slugify | ||||
| from assets.models import DynamicStorageFileField, StorageLocation | from static_assets.models import DynamicStorageFileField, StorageLocation | ||||
| from comments.models import Comment | from comments.models import Comment | ||||
| from common import mixins | from common import mixins | ||||
| from common.upload_paths import get_upload_to_hashed_path | from common.upload_paths import get_upload_to_hashed_path | ||||
| from training.models import chapters | from training.models import chapters | ||||
| class Section(mixins.CreatedUpdatedMixin, models.Model): | class Section(mixins.CreatedUpdatedMixin, models.Model): | ||||
| class Meta: | class Meta: | ||||
| ▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines | |||||