This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django import forms | |
from django.contrib import admin | |
from django.utils.safestring import mark_safe | |
from django.template.loader import render_to_string | |
from .models import Consumer | |
class JSONEditorWidget(forms.Widget): |