diff news/models.py @ 987:76525f5ac2b1

Modify ssl_images to update news models.
author Brian Neal <bgneal@gmail.com>
date Wed, 28 Oct 2015 21:06:13 -0500
parents ee87ea74d46b
children 19b86e684cc2
line wrap: on
line diff
--- a/news/models.py	Sun Oct 25 14:47:29 2015 -0500
+++ b/news/models.py	Wed Oct 28 21:06:13 2015 -0500
@@ -18,7 +18,7 @@
         return self.title
 
     def num_stories(self):
-        return News.objects.filter(category = self.pk).count()
+        return Story.objects.filter(category=self.pk).count()
 
     class Meta:
         verbose_name_plural = 'Categories'