2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 04:25:42 +00:00

Added further part pricing

This commit is contained in:
Oliver Walters
2019-05-21 14:08:40 +10:00
parent cdcc4f9ca1
commit 2817e6ca31
4 changed files with 29 additions and 9 deletions

View File

@ -710,7 +710,7 @@ class Part(models.Model):
if kwargs.get('image', True):
if other.image:
image_file = ContentFile(other.image.read())
image_file.name = rename_part_image(self, 'test.png')
image_file.name = rename_part_image(self, other.image.url)
self.image = image_file