Thanks, that's the one! I'm a bit wary of using the branches for production sites, do you have any experience of using the newforms- admin branch?
On Apr 3, 1:51 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Wed, Apr 2, 2008 at 3:18 PM, Kip Parker <[EMAIL PROTECTED]> wrote: > > > 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? > > Sounds like: > > http://code.djangoproject.com/ticket/2413 > > The recommended workaround is to use newforms-admin, where core is no more. > > Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---