Changeset View
Changeset View
Standalone View
Standalone View
films/models/production_logs.py
| from datetime import date, timedelta | from datetime import date, timedelta | ||||
| from django.contrib.auth.models import User | from django.contrib.auth.models import User | ||||
| from django.db import models | from django.db import models | ||||
| from django.urls.base import reverse | from django.urls.base import reverse | ||||
| 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 films.models import Asset, Film, FilmCrew | from films.models import Asset, Film, FilmCrew | ||||
| class ProductionLog(mixins.CreatedUpdatedMixin, models.Model): | class ProductionLog(mixins.CreatedUpdatedMixin, mixins.StaticThumbnailURLMixin, models.Model): | ||||
| """A log (collection) of all authors' production log entries in one week.""" | """A log (collection) of all authors' production log entries in one week.""" | ||||
| class Meta: | class Meta: | ||||
| verbose_name = 'production weekly' | verbose_name = 'production weekly' | ||||
| verbose_name_plural = 'production weeklies' | verbose_name_plural = 'production weeklies' | ||||
| film = models.ForeignKey(Film, on_delete=models.CASCADE, related_name='production_logs') | film = models.ForeignKey(Film, on_delete=models.CASCADE, related_name='production_logs') | ||||
| name = models.CharField( | name = models.CharField( | ||||
| ▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines | |||||