summaryrefslogtreecommitdiff
path: root/papillon/polls/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'papillon/polls/models.py')
-rw-r--r--papillon/polls/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/papillon/polls/models.py b/papillon/polls/models.py
index f8b3b22..411e75f 100644
--- a/papillon/polls/models.py
+++ b/papillon/polls/models.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (C) 2008 √Čtienne Loks <etienne.loks_AT_peacefrogsDOTnet>
+# Copyright (C) 2008-2011 √Čtienne Loks <etienne.loks_AT_peacefrogsDOTnet>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as
@@ -138,7 +138,7 @@ the poll/check this option to reopen it"))
class Comment(models.Model):
'''Comment for a poll'''
- poll = models.ForeignKey(Poll)
+ poll = models.ForeignKey(Poll, related_name='comments')
author_name = models.CharField(max_length=100)
text = models.CharField(max_length=1000)
date = models.DateTimeField(auto_now_add=True)