This commit is contained in:
Thomas Steen Rasmussen 2017-03-14 17:37:44 +01:00
parent 181a0e43b0
commit e316ebbb44

View file

@ -62,7 +62,7 @@ def get_speakerproposal_picture_upload_path(instance, filename):
""" We want speakerproposal pictures saved as MEDIA_ROOT/public/speakerproposals/camp-slug/proposal-uuid/filename """
return 'public/speakerproposals/%(campslug)s/%(proposaluuid)s/%(filename)s' % {
'campslug': instance.camp.slug,
'proposaluuidd': instance.uuid,
'proposaluuid': instance.uuid,
'filename': filename
}