otherwise use note.id
"""
if self.slug == None:
+ # return a url ending in slug
return u"/{0}/{1}/{2}".format(self.course.school.slug, self.course.slug, self.slug)
else:
+ # return a url ending in id
return u"/{0}/{1}/{2}".format(self.course.school.slug, self.course.slug, self.id)
-# FIXME: replace the following GOOGLE_USER in a settings.py
-GOOGLE_USER = 'seth.woodworth@gmail.com'
-
class DriveAuth(models.Model):
""" stored google drive authentication and refresh token
used for interacting with google drive """