diff --git a/server/books/models/snapshot.py b/server/books/models/snapshot.py index 8f934032..477a173c 100644 --- a/server/books/models/snapshot.py +++ b/server/books/models/snapshot.py @@ -3,8 +3,11 @@ from django.db import models from django.db.models import Q from books.models import Chapter, ContentBlock, ContentBlockSnapshot +from core.logger import get_logger from objectives.models import ObjectiveSnapshot +logger = get_logger(__name__) + class ChapterSnapshot(models.Model): """ @@ -127,6 +130,7 @@ class Snapshot(models.Model): without_owner = Q(owner__isnull=True) no_snapshot = Q(contentblocksnapshot__isnull=True) owner_user = Q(owner=user) + logger.info(f'resetting hidden properties for chapter {chapter.id}') chapter.title_hidden_for.remove(selected_class) chapter.description_hidden_for.remove(selected_class)