Commit 352353ed authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Renamed reply plural.

parent ab27cb2c
......@@ -10,6 +10,9 @@ class Question( models.Model ):
text = models.TextField(max_length=1000)
rating = models.IntegerField(default=0)
class Meta:
ordering = ["rating"]
def get_comments(self):
comments = Comment.objects.filter(parent__pk=self.pk)
return comments
......@@ -40,5 +43,8 @@ class Reply( models.Model ):
text = models.TextField()
parent = models.ForeignKey('Comment')
class Meta:
verbose_name_plural = "replies"
def __unicode__(self):
return '%s, %s' % ( self.user, self.date )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment