Source

django-cms-mycmsproject-toporojo / hvad / test_utils / project / app / admin.py

Full commit
from django.contrib import admin
from hvad.test_utils.project.app.models import Normal, SimpleRelated, LimitedChoice
from hvad.admin import TranslatableAdmin, TranslatableTabularInline

class SimpleRelatedInline(TranslatableTabularInline):
    model = SimpleRelated

class NormalAdmin(TranslatableAdmin):
    inlines = [SimpleRelatedInline,]

admin.site.register(Normal, NormalAdmin)
admin.site.register(SimpleRelated, TranslatableAdmin)
admin.site.register(LimitedChoice)