From: Josh Williams Date: Mon, 30 Sep 2013 19:41:54 +0000 (-0400) Subject: Add missing .txt file type X-Git-Tag: release-20150131~386^2~82 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=20a5f7baecc6babd63d3315eec0cd49db0b638dc;p=oweals%2Fkarmaworld.git 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 --- 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'), )