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?
[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
2 matches
Mail list logo