Merge branch 'ppt-gdrive' of https://github.com/FinalsClub/karmaworld into ppt-gdrive
[oweals/karmaworld.git] / karmaworld / apps / notes / models.py
index f34bb333deb06c67bdce09d312544c842f17f83e..0552cc933966c433b750fd50621ccd06aedf945f 100644 (file)
@@ -53,10 +53,15 @@ class Note(models.Model):
                             blank=True, null=True)
 
     # Upload files to MEDIA_ROOT/notes/YEAR/MONTH/DAY, 2012/10/30/filename
+    # FIXME: because we are adding files by hand in tasks.py, upload_to is being ignored for media files
     note_file       = models.FileField(
                             storage=fs,
                             upload_to="notes/%Y/%m/%j/",
                             blank=True, null=True)
+    pdf_file       = models.FileField(
+                            storage=fs,
+                            upload_to="notes/%Y/%m/%j/",
+                            blank=True, null=True)
 
     ## post gdrive conversion data
     embed_url       = models.URLField(max_length=1024, blank=True, null=True)