Image uploading broken for >1 image

Create issue
Issue #100 resolved
Former user created an issue

When I upload the second image via the admin, the first image gets overwritten and both images match the second image uploaded.

Reported by baumer1122

Comments (2)

  1. Former user Account Deleted

    Changing _get_filename for the ProductImage model to this seems to work...

        def _get_filename(self):
            if self.product:
                return '%s-%s' % (self.product.slug,self.sort)
            else:
                return 'default'
    
  2. Log in to comment