Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (8 sloc) 0.322 kb
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)
Jump to Line
Something went wrong with that request. Please try again.