summaryrefslogtreecommitdiff
path: root/tbc/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tbc/models.py')
-rw-r--r--tbc/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tbc/models.py b/tbc/models.py
index 4465a4d..76c9dc6 100644
--- a/tbc/models.py
+++ b/tbc/models.py
@@ -38,6 +38,8 @@ ABOUT_PROJ = (("pythontbc website", "Python TBC Website"),
("posters in college", "Through Posters in College"),
("others", "Others"))
+
+
def get_notebook_dir(instance, filename):
return '%s/%s/%s' % (instance.book.contributor, instance.book.title.replace(' ', '_'), filename.replace(' ', '_'))