summaryrefslogtreecommitdiff
path: root/papillon/polls/models.py
diff options
context:
space:
mode:
authorÉtienne Loks2011-10-25 00:53:14 +0200
committerÉtienne Loks2011-10-25 00:53:14 +0200
commit229e7616b16ee1f316b9a9ab5442631ff5033668 (patch)
tree11fea83203b9c90278e20d4fff45996c73923ce8 /papillon/polls/models.py
parente41e52768085a81b1b5d48f5f0583b6449179fa8 (diff)
Limit comments by poll (closes #310)
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)