﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
3567	Many to One Relationship w/ just ImageField()	sheats@…	Marty Alchin	"The following code does not act as expected in the admin.  

{{{

class Property(models.Model):
address = models.CharField(maxlength=100)
	price = models.IntegerField(blank=True)
	...

	def __str__(self):
		return self.address
	
	class Admin:
		pass

class Image(models.Model):
	propertyid = models.ForeignKey(Property, edit_inline=models.STACKED, num_in_admin=5)
	image = models.ImageField(upload_to='properties/images', core=True)


}}}

If you add a couple images the first time it's fine.  If you go back and edit the Property and add another image it deletes all the other images.  I found that if I add another field to the Image class it seems to work correctly.  
''"		closed	contrib.admin	dev		fixed	fs-rf-fixed		Accepted	0	0	0	0	0	0
