Commits

Guilherme Gondim committed 7a4f8fa

improve InlinePictureAdmin

Comments (0)

Files changed (1)

+from django import forms
 from django.contrib import admin
+from django.db import models
 from django.utils.translation import ugettext_lazy as _
 from imagekit.admin import AdminThumbnail
 
     extra = 1
     model = Picture
     prepopulated_fields = {'slug': ('title',)}
+    formfield_overrides = {
+        models.TextField: {'widget': forms.Textarea(attrs={'rows':3,'cols':30})}
+    }
 
 class AlbumAdmin(admin.ModelAdmin):
     form = AlbumAdminForm