document Note.get_absolute_url
authorSeth Woodworth <seth@sethish.com>
Wed, 23 Jan 2013 06:06:48 +0000 (01:06 -0500)
committerSeth Woodworth <seth@sethish.com>
Wed, 23 Jan 2013 06:06:48 +0000 (01:06 -0500)
karmaworld/apps/notes/models.py

index 7b1f0b3c7d3a0bf0bfaba1cb58d332dd0455451a..1a6828e747fd57ebc8dbe63c06b25e5cab5b868a 100644 (file)
@@ -71,14 +71,13 @@ class Note(models.Model):
             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 """