From 8d57cb56e49fcb2e4a7871a8b2a9d145c6b6cc62 Mon Sep 17 00:00:00 2001
From: Bryan <btbonval@gmail.com>
Date: Wed, 15 Jan 2014 22:49:32 -0500
Subject: [PATCH] refactoring note to self

---
 karmaworld/apps/notes/models.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/karmaworld/apps/notes/models.py b/karmaworld/apps/notes/models.py
index 65365c8..e9d5ad4 100644
--- a/karmaworld/apps/notes/models.py
+++ b/karmaworld/apps/notes/models.py
@@ -228,7 +228,7 @@ class Note(Document):
         # Maybe run checksums if possible to confirm its really done?
         # (but then you gotta wonder was the original correct or is the new
         # one correct)
-        if note.static_html:
+        if self.static_html:
             return
         # upload the HTML file to static host if it is not already there
         filepath = self.get_relative_s3_path()
@@ -247,9 +247,9 @@ class Note(Document):
         # or
         # file was just uploaded successfully to filepath
         # Regardless, set note as uploaded.
-        note.static_html = True
+        self.static_html = True
         if do_save:
-            note.save()
+            self.save()
 
     def get_absolute_url(self):
         """ Resolve note url, use 'note' route and slug if slug
-- 
2.25.1