mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Delete old code
This commit is contained in:
parent
7fb89e4dbe
commit
16d3a87e78
@ -26,8 +26,6 @@ class PartConfig(AppConfig):
|
||||
for part in Part.objects.all():
|
||||
if part.image:
|
||||
url = part.image.thumbnail.name
|
||||
#if url.startswith('/'):
|
||||
# url = url[1:]
|
||||
loc = os.path.join(settings.MEDIA_ROOT, url)
|
||||
if not os.path.exists(loc):
|
||||
print("InvenTree: Generating thumbnail for Part '{p}'".format(p=part.name))
|
||||
|
Loading…
Reference in New Issue
Block a user