<gh_stars>1-10
from django.contrib import admin

from .models import Gallery, GalleryImage


class GalleryImageInline(admin.StackedInline):
    model = GalleryImage
    extra = 1


class GalleryAdmin(admin.ModelAdmin):
    model = Gallery
    inlines = [GalleryImageInline]


admin.site.register(Gallery, GalleryAdmin)
