mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-02 10:18:42 +00:00
Mark content field as 'safe'
This commit is contained in:
@@ -2921,6 +2921,10 @@ class Note(
|
|||||||
created: Date/time that the note was created
|
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:
|
class Meta:
|
||||||
"""Meta options for Note model."""
|
"""Meta options for Note model."""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user