Skip to content

Commit 503ebe0

Browse files
committed
Add view this file feature to images too
1 parent 753b006 commit 503ebe0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

views/media.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def post(self, request, format=None):
5757
new_path = os.path.join(
5858
settings.MEDIA_URL, app_name, filename
5959
)
60+
media_path=new_path
6061
try:
6162
shutil.copyfile(source, destination)
6263
except IOError:

0 commit comments

Comments
 (0)