Could someone confirm that Inline images don't work in Newforms admin?
Thanks. Here is the simplest sample code I came up with:

from django.db import models

class TestObject(models.Model):
    somefield = models.CharField(max_length=100)

class TestObjectImageInline(models.Model):
    test_object = models.ForeignKey(TestObject)
    image = models.ImageField(upload_to='images')
    anotherfield = models.BooleanField(default=True)

from django.contrib import admin

class TestObjectInline(admin.TabularInline):
    model = TestObjectImageInline

class TestObjectAdmin(admin.ModelAdmin):
    model = TestObject
    inlines = [TestObjectInline]

admin.site.register(TestObject, TestObjectAdmin)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to