Commit bc09527b authored by Tom van Bussel's avatar Tom van Bussel
Browse files

Added missing translation in photos admin

parent 5cb77086
......@@ -14,7 +14,7 @@ COVER_FILENAME = 'cover.jpg'
def photo_uploadto(instance, filename):
num = instance.album.photo_set.count()
_, extension = os.path.splitext(filename)
extension = os.path.splitext(filename)[1]
new_filename = str(num).zfill(4) + extension
return os.path.join(Album.photosdir, instance.album.dirname, new_filename)
......
Supports Markdown
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