app/soc/views/models/docs.py
changeset 448 075360be6743
parent 445 31927f21970d
child 462 1f164cd0529b
--- a/app/soc/views/models/docs.py	Fri Nov 07 22:13:20 2008 +0000
+++ b/app/soc/views/models/docs.py	Fri Nov 07 22:24:01 2008 +0000
@@ -132,7 +132,7 @@
     """
 
     id = users.get_current_user()
-    user = soc.logic.models.user.logic.getFromFields(email=id.email())
+    user = soc.logic.models.user.logic.getForFields({'id': id}, unique=True)
     fields['author'] = user
 
   def _editGet(self, request, entity, form):