diff pylons_app/model/db.py @ 462:298546182b41

more test suites on login, fixed strange detached instance bug found during in tests. on __repr__ function fixed timerproxy query formatting
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 05 Sep 2010 23:40:08 +0200
parents 7c978511c951
children 6b934c9607e7
line wrap: on
line diff
--- a/pylons_app/model/db.py	Sun Sep 05 18:07:37 2010 +0200
+++ b/pylons_app/model/db.py	Sun Sep 05 23:40:08 2010 +0200
@@ -56,7 +56,7 @@
             self.last_login = datetime.datetime.now()
             session.add(self)
             session.commit()
-            log.debug('updated user %s lastlogin',self)
+            log.debug('updated user %s lastlogin',self.username)
         except Exception:
             session.rollback()