app/soc/views/models/notification.py
changeset 2164 94e498e3dd44
parent 2161 3b5e0e0880cd
child 2361 40b0c25a5793
--- a/app/soc/views/models/notification.py	Sat Apr 11 23:04:29 2009 +0000
+++ b/app/soc/views/models/notification.py	Sun Apr 12 00:18:19 2009 +0000
@@ -195,7 +195,7 @@
         self._logic.updateEntityProperties(entity, {'unread' : False} )
 
     context['entity_type_url'] = self._params['url_name']
-    context['entity_suffix'] = entity.key().id_or_name()
+    context['entity_suffix'] = entity.key().id_or_name() if entity else None
 
     return True