<reponame>termsofservice212/django-tinymce4-lite<gh_stars>100-1000
from django.contrib import admin
from .models import TestModel, TestChildModel


class ChildInline(admin.StackedInline):
    model = TestChildModel
    extra = 1


@admin.register(TestModel)
class TestModelAdmin(admin.ModelAdmin):
    inlines = [ChildInline]


from django.contrib import admin
from .models import TestModel, TestChildModel


class ChildInline(admin.StackedInline):
    model = TestChildModel
    extra = 1


@admin.register(TestModel)
class TestModelAdmin(admin.ModelAdmin):
    inlines = [ChildInline]