projects
/
oweals
/
karmaworld.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
612eeab
)
attempt conditional import of GOOGLE_USER for notes.models
author
Seth Woodworth
<seth@sethish.com>
Wed, 23 Jan 2013 08:21:44 +0000
(
03:21
-0500)
committer
Seth Woodworth
<seth@sethish.com>
Wed, 23 Jan 2013 08:21:44 +0000
(
03:21
-0500)
karmaworld/apps/notes/models.py
patch
|
blob
|
history
diff --git
a/karmaworld/apps/notes/models.py
b/karmaworld/apps/notes/models.py
index 1a6828e747fd57ebc8dbe63c06b25e5cab5b868a..2d0ddd51236aa5aa7ce0cf40fbc6e9b2aece3ce4 100644
(file)
--- a/
karmaworld/apps/notes/models.py
+++ b/
karmaworld/apps/notes/models.py
@@
-15,6
+15,11
@@
from oauth2client.client import Credentials
from karmaworld.apps.courses.models import Course
+try:
+ from secrets.drive import GOOGLE_USER
+except:
+ GOOGLE_USER = u'admin@karmanotes.org'
+
class Note(models.Model):
""" A django model representing an uploaded file and associated metadata.
"""