modified the rolerequest model to suit the design
authorNishanth Amuluru <nishanth@fossee.in>
Sat, 08 Jan 2011 20:49:35 +0530
changeset 83 41af05ded3c6
parent 82 285320d3063c
child 84 2120e853f10b
modified the rolerequest model to suit the design
pytask/profile/models.py
--- a/pytask/profile/models.py	Sat Jan 08 20:49:12 2011 +0530
+++ b/pytask/profile/models.py	Sat Jan 08 20:49:35 2011 +0530
@@ -69,7 +69,7 @@
     message = models.TextField()
     response = models.TextField()
 
-    sent_to = models.ForeignKey(User, related_name = "%(class)s_sent_to", blank = False)
+    sent_to = models.ManyToManyField(User, related_name = "%(class)s_sent_to", blank = False)
     sent_from = models.ForeignKey(User, related_name = "%(class)s_sent_from", null = True, blank = True)
 
     sent_date = models.DateTimeField()