From 1ceb88c052718957387f340b40811ac33aa4b59c Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 5 Oct 2011 14:49:08 +0530 Subject: [PATCH] admin stuff --- urbstudio/urb/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/urbstudio/urb/admin.py b/urbstudio/urb/admin.py index 79e1fca..bb680b9 100755 --- a/urbstudio/urb/admin.py +++ b/urbstudio/urb/admin.py @@ -4,16 +4,16 @@ from models import * class ProjectImageInline(admin.TabularInline): model = ProjectImage - extra = 12 + extra = 20 class ProjectAdmin(admin.ModelAdmin): + prepopulated_fields = {'slug': ('title',)} inlines = [ProjectImageInline] class SliderImageAdmin(admin.ModelAdmin): list_display = ('__unicode__', 'order',) list_editable = ('order',) - admin.site.register(Project, ProjectAdmin) admin.site.register(SliderImage, SliderImageAdmin) admin.site.register(Link)