mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-20 15:05:12 +00:00
Load notes into editor
This commit is contained in:
1 parent
9e8764d28a
commit
df340e363c
3 files changed
+69
-8
No files matched your search
@@ -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]
|
||||
|
||||
@@ -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."""
|
||||
|
||||
|
||||
Reference in new issue
Block a user