app/soc/logic/models/request.py
changeset 1085 0afbdd0905ef
parent 928 df051fc9d7a1
child 1106 e14b0995cf29
--- a/app/soc/logic/models/request.py	Fri Jan 30 17:23:19 2009 +0000
+++ b/app/soc/logic/models/request.py	Fri Jan 30 17:38:28 2009 +0000
@@ -63,10 +63,10 @@
     """Sends out a message notifying users about the new invite/request.
     """
 
-    if entity.state == 'group_accepted':
+    if entity.status == 'group_accepted':
       # this is an invite
       notifications.sendInviteNotification(entity)
-    elif entity.state == 'new':
+    elif entity.status == 'new':
       # this is a request
       # TODO(Lennard) Create a new request message
       pass