from app_characterclasses.models import CharacterClass
from app_spells.models import Spell
from django.contrib import admin


class SpellInline(admin.TabularInline):
    model = Spell.classes.through


class CharacterClassAdmin(admin.ModelAdmin):
    model = CharacterClass
    inlines = [SpellInline]


admin.site.register(CharacterClass, CharacterClassAdmin)
