Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 11 lines (8 sloc) 0.322 kb
1 2 3 4 5 6 7 8 9 10 11
from cms.admin.placeholderadmin import PlaceholderAdmin
from django.contrib import admin
from testapp.sampleapp.models import Picture, Category

class PictureInline(admin.StackedInline):
    model = Picture

class CategoryAdmin(PlaceholderAdmin):
    inlines = [PictureInline]

admin.site.register(Category, CategoryAdmin)
Something went wrong with that request. Please try again.