Added argument to inventory item picture function

This commit is contained in:
teras 2017-12-02 22:37:57 +02:00
parent 305ff7b192
commit aff3c50e70

View File

@ -10,8 +10,8 @@ def get_profile_image_path(instance, filename):
return os.path.join('icons', str(instance.id), filename)
def get_inventory_item_path(filename):
return os.path.join('inventory', filename)
def get_inventory_item_path(instance, filename):
return os.path.join('inventory', str(instance.id))
class Profile(models.Model):