Added argument to inventory item picture function

This commit is contained in:
teras 2017-12-02 22:37:57 +02:00 committed by Lauri Võsandi
parent 3322c4e6c9
commit ff1fbb7403

View File

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