mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-06-06 14:42:52 +02:00
feat: presets
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import json
|
||||
|
||||
from django import template
|
||||
|
||||
|
||||
register = template.Library()
|
||||
|
||||
|
||||
@register.filter("json")
|
||||
def convert_to_json(value):
|
||||
return json.dumps(value)
|
||||
Reference in New Issue
Block a user