load body if no edit is defined
This commit is contained in:
parent
fa0c383227
commit
a334dc6b4f
2 changed files with 40 additions and 31 deletions
|
|
@ -7,6 +7,8 @@ from ..widgets import PrettyJSONWidget
|
|||
|
||||
@admin.decorators.register(models.Text)
|
||||
class TextAdmin(admin.ModelAdmin):
|
||||
save_on_top = True
|
||||
|
||||
formfield_overrides = {
|
||||
JSONField: {'widget': PrettyJSONWidget}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue