mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-02-17 05:48:24 +00:00
27 lines
598 B
Python
27 lines
598 B
Python
|
# from django.contrib import admin
|
||
|
# from django import forms
|
||
|
|
||
|
# from django_jsonform.widgets import JSONFormWidget
|
||
|
|
||
|
# from django_pydantic_field.v2.fields import PydanticSchemaField
|
||
|
|
||
|
# from .models import CustomPlugin
|
||
|
|
||
|
|
||
|
# class PluginForm(forms.ModelForm):
|
||
|
# class Meta:
|
||
|
# model = CustomPlugin
|
||
|
# fields = '__all__'
|
||
|
# widgets = {
|
||
|
# 'items': JSONFormWidget(schema=PluginSchema),
|
||
|
# }
|
||
|
|
||
|
|
||
|
# class PluginAdmin(admin.ModelAdmin):
|
||
|
# formfield_overrides = {
|
||
|
# PydanticSchemaField: {"widget": JSONFormWidget},
|
||
|
# }
|
||
|
# form = PluginForm
|
||
|
|
||
|
|