quiz/models.py
changeset 23 f57c30096b51
parent 22 fe197c0c9903
child 28 456b7b9e3d13
--- a/quiz/models.py	Tue Apr 20 23:12:15 2010 +0530
+++ b/quiz/models.py	Tue Apr 20 23:29:44 2010 +0530
@@ -34,7 +34,7 @@
     """
 
     user = models.ForeignKey(User)
-    event = models.ForeignKey(Event)
+    event = models.ForeignKey(Event, related_name="%(class)s")
     user_ip = models.CharField(max_length=15)
     key = models.CharField(max_length=10)