Commit 460b884a authored by fred's avatar fred
Browse files

fix location of uploaded images

parent 01aace7e
......@@ -21,7 +21,7 @@ class Category(models.Model):
def get_emission_image_path(instance, filename):
return os.path.join('images', instance.emission.slug,
return os.path.join('images', instance.slug,
os.path.basename(filename))
......@@ -119,7 +119,7 @@ class Schedule(models.Model):
def get_episode_image_path(instance, filename):
return os.path.join('images', instance.episode.emission.slug,
return os.path.join('images', instance.emission.slug,
os.path.basename(filename))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment