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

Bug fix for static lookup of blank image

This commit is contained in:
Oliver Walters
2019-12-09 20:40:04 +11:00
parent 0ef033f800
commit 5e9b012031
2 changed files with 2 additions and 4 deletions

View File

@ -17,7 +17,6 @@ from django.db.models import Sum
from django.apps import apps
from django.urls import reverse
from django.conf import settings
from django.conf.urls.static import static
from InvenTree.fields import InvenTreeURLField
from InvenTree.status_codes import OrderStatus
@ -110,7 +109,7 @@ class Company(models.Model):
if self.image:
return os.path.join(settings.MEDIA_URL, str(self.image.url))
else:
return static('/img/blank_image.png')
return os.path.join(settings.STATIC_URL, 'img/blank_image.png')
@property
def part_count(self):