I have the following model which defines a 1-n relation between
sections and section images:
class Section(models.Model):
type = models.ForeignKey(SectionType)
title = models.CharField(maxlength = 150,
blank = True)
class Admin:
pass
class SectionImage(models.Model):
section = models.ForeignKey(Section,
edit_inline = models.STACKED,
null = True)
image = models.ImageField(upload_to = 'section/image/',
core = True)
class Admin:
pass
When I add / edit a section, admin app displays 3 file form fields for
uploading images (as they are edited inline), and when I save the
section, an empty string is saved into the db for every empty image
form field.
Is there something wrong with my model, or is this a bug in admin?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---