# HG changeset patch # User durandn # Date 1470995437 -7200 # Node ID 365f922853086c508d04e86198569654a6861b1b # Parent f0ce0058c09b6c02878a3b18a0a11a71e7004d63 fixed error in import command diff -r f0ce0058c09b -r 365f92285308 src/iconolab/management/commands/importimages.py --- a/src/iconolab/management/commands/importimages.py Fri Aug 12 11:10:42 2016 +0200 +++ b/src/iconolab/management/commands/importimages.py Fri Aug 12 11:50:37 2016 +0200 @@ -171,8 +171,8 @@ print(e) new_image = Image.objects.create( item = item_object, - media = image_path, - name = image_name, + media = "uploads/"+image_name+".jpg", + name = image_name+".jpg", height = im_height, width = im_width )