Load notes into editor

This commit is contained in:
Oliver Walters
2026-05-21 09:59:47 +00:00
parent 9e8764d28a
commit df340e363c
3 changed files with 69 additions and 8 deletions
+4
View File
@@ -840,6 +840,10 @@ class NoteFilter(FilterSet):
class NoteMixin:
"""Mixin class for the Note views."""
# Ignore default sanitizing of the 'content' field
# Note: This is handled explicitly in the 'save' method of the Note model
SAFE_FIELDS = ['content']
queryset = common.models.Note.objects.all()
serializer_class = common.serializers.NoteSerializer
permission_classes = [IsAuthenticatedOrReadScope]
-4
View File
@@ -2921,10 +2921,6 @@ class Note(
created: Date/time that the note was created
"""
# Ignore default sanitizing of the 'content' field
# Note: This is handled explicitly in the 'save' method
SAFE_FIELDS = ['content']
class Meta:
"""Meta options for Note model."""