jdriscoll/django-imagekit — Issue #53: InlineModelAdmin
Author: nishimu
Created: 2011-11-06 13:14:07+00:00
State: open

How can we admin a model contains a thumbnail with InlineModelAdmin or not?

For example, put these lines to admin.py;
class PhotoInline(admin.TabularInline):
model = Photo
admin_thumbnail = AdminThumbnail(image_field='thumbnail')
fields = ('admin_thumbnail', 'caption')

class ProductAdmin(admin.ModelAdmin):
inlines = [
PhotoInline,
]

This cause the following error;
Exception Type:	ImproperlyConfigured
Exception Value:	'PhotoInline.fields' refers to field 'admin_thumbnail' that is missing from the form.