changeset 116:19b64e8f02a2

Fix typo introduced in last commit.
author Brian Neal <bgneal@gmail.com>
date Fri, 23 Oct 2009 03:08:40 +0000
parents 0ce0104c7df3
children a3633f39f3ce
files gpp/forums/models.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gpp/forums/models.py	Thu Oct 22 02:57:18 2009 +0000
+++ b/gpp/forums/models.py	Fri Oct 23 03:08:40 2009 +0000
@@ -331,7 +331,7 @@
                 self.last_visit.strftime('%Y-%m-%d %H:%M:%S'))
 
     def save(self, *args, **kwargs):
-        if self.id is one:
+        if self.id is None:
             self.touch()
         super(TopicLastVisit, self).save(*args, **kwargs)