diff options
author | hardythe1 | 2015-08-03 12:43:05 +0530 |
---|---|---|
committer | hardythe1 | 2015-08-03 12:43:05 +0530 |
commit | fab654cb9ea05f4ceb30bb0e96d92e3f48d6c234 (patch) | |
tree | f6bed087f86f08ab011488680cc0f1af77e614de /tbc | |
parent | 0f585f0d6d295356da70836aecbae236faafcfd1 (diff) | |
download | Python-TBC-Interface-fab654cb9ea05f4ceb30bb0e96d92e3f48d6c234.tar.gz Python-TBC-Interface-fab654cb9ea05f4ceb30bb0e96d92e3f48d6c234.tar.bz2 Python-TBC-Interface-fab654cb9ea05f4ceb30bb0e96d92e3f48d6c234.zip |
Corrected path for Image directory
Diffstat (limited to 'tbc')
-rw-r--r-- | tbc/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tbc/models.py b/tbc/models.py index e2e6940..f2000a3 100644 --- a/tbc/models.py +++ b/tbc/models.py @@ -62,7 +62,8 @@ def get_notebook_dir(instance, filename): def get_image_dir(instance, filename): - return '%s/screenshots/%s' % (instance.book.title.replace(' ', '_'), filename.replace(' ', '_')) + book_dir = instance.book.title.replace(' ', '_')+'_by_'+instance.book.author.replace(' ','_') + return '%s/screenshots/%s' % (book_dir, filename.replace(' ', '_')) def get_sample_dir(instance, filename): |