from django.contrib import admin

from rangers.models import Appearance, Ranger


class AppearanceInlineAdmin(admin.StackedInline):
    model = Appearance
    extra = 0


@admin.register(Ranger)
class RangerAdmin(admin.ModelAdmin):
    inlines = (AppearanceInlineAdmin,)

from django.contrib import admin

from rangers.models import Appearance, Ranger


class AppearanceInlineAdmin(admin.StackedInline):
    model = Appearance
    extra = 0


@admin.register(Ranger)
class RangerAdmin(admin.ModelAdmin):
    inlines = (AppearanceInlineAdmin,)
