From 20a5f7baecc6babd63d3315eec0cd49db0b638dc Mon Sep 17 00:00:00 2001 From: Josh Williams Date: Mon, 30 Sep 2013 15:41:54 -0400 Subject: [PATCH] Add missing .txt file type ... Though we don't seem to use it at the moment, instead leaning on GDrive for the handling of the type. Also include same import fix as gdrive.py --- karmaworld/apps/notes/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/karmaworld/apps/notes/models.py b/karmaworld/apps/notes/models.py index 75296e9..5644649 100644 --- a/karmaworld/apps/notes/models.py +++ b/karmaworld/apps/notes/models.py @@ -23,7 +23,7 @@ from taggit.managers import TaggableManager from karmaworld.apps.courses.models import Course try: - from secrets.drive import GOOGLE_USER + from secret.drive import GOOGLE_USER except: GOOGLE_USER = u'admin@karmanotes.org' @@ -127,6 +127,7 @@ class Note(Document): ('img', 'Scan or picture of notes'), ('pdf', 'PDF file'), ('ppt', 'Powerpoint'), + ('txt', 'Text'), (UNKNOWN_FILE, 'Unknown file'), ) -- 2.25.1