This model is edited inline with the ImageField being the only one
with core=True.

class Image(models.Model):
        image = models.ImageField(upload_to="images", core=True)
        caption = models.CharField(blank=True, max_length=250)
        artist = models.ForeignKey(Artist, edit_inline=models.TABULAR)

But it doesn't work well in the admin, as if you save the associated
Artist entry after editing it without re-entering the image files,
they are deleted, I suppose because the "core" fields (the image
uploads) are treated as being empty, rather than unchanged.

Am I doing something wrong or is there a workaround for this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to