from django.contrib import admin

from .forms import TForm
from .models import TModel


class TestInline(admin.TabularInline):
    form = TForm
    model = TModel
    fk_name = 'for_inline'


class TestAdmin(admin.ModelAdmin):
    form = TForm

admin.site.register(TModel, TestAdmin)
