inital commit 1

This commit is contained in:
mxdyeah committed 2026-07-08 19:25:29 +08:00
commit db645123c7
196 files changed
+11102

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
from django.db.models import JSONField # NOQA
from django.db import models
from utils.xss_filter import XSSHtml
class RichTextField(models.TextField):
def get_prep_value(self, value):
with XSSHtml() as parser:
return parser.clean(value or "")