#12532: empty inline forms with FileField are never ignored
-----------------------------------+----------------------------------------
 Reporter:  gogna                  |       Owner:  nobody    
   Status:  new                    |   Milestone:            
Component:  django.contrib.admin   |     Version:  1.1       
 Keywords:  inline admin formsets  |       Stage:  Unreviewed
Has_patch:  0                      |  
-----------------------------------+----------------------------------------
 example:

 {{{
 class Album(models.Model):
   name = Charfield(max_length=100)

 class Song(models.Model):
   title = CharField(max_length=100)
   audio = FileField()
   album = ForeignKey(Album)

 class SongInline(admin.StackedInline):
   model = Song
   extra = 3

 class AlbumAdmin(models.ModelAdmin):
   inlines=[SongInline]

 admin.site.register(Album, AlbumAdmin)
 }}}

 Every time I edit an save an Album, Django expect every inline forms to
 have its file.

 Moreover, if I specify ```null=True, blank=True``` on the FileField
 declaration, with every save it creates 3 new Song objects associated with
 the Album

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12532>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en.


Reply via email to