Ticket #10228: admin.py

File admin.py, 313 bytes (added by lostlogic, 16 years ago)

Relavent admin.py

Line 
1from links.models import Category, Link
2from django.contrib import admin
3
4class LinkInline(admin.StackedInline):
5 model = Link
6 extra = 3
7
8class CategoryOptions(admin.ModelAdmin):
9 list_display = ('name','order','description')
10
11 inlines = [LinkInline]
12
13admin.site.register(Category, CategoryOptions)
14
Back to Top