Re: model relationship filtering

2007-03-19 Thread [EMAIL PROTECTED]
Hello, > If a gallery is unique to a rantal, why use a n:m relationship? You > should be able to use a 1:m if each photo is associated with exactly one > rental. As to putting the images in rental-specific sub-directories, can > you make the association from photo to rental explicit and do this?

Re: model relationship filtering

2007-03-16 Thread Laurie Harper
[EMAIL PROTECTED] wrote: > Hello, > > I have a site that offers a bunch of appartments for rent. Each of > these rentals has a image gallery showing the look&feel of that place. > My models currently look like this: > > class Photo( models.Model ): > name = models.ImageField( upload_to='rent