Commits

Anonymous committed c7fe081 Draft

Use a nicer name for reverse relation

  • Participants
  • Parent commits 0cb0c4a

Comments (0)

Files changed (1)

File gnocchi/faq/models.py

         return self.get_query_set().filter(is_published=True)
 
 class Question(models.Model):
-    category = models.ForeignKey(Category)
+    category = models.ForeignKey(Category, related_name='questions')
 
     question = models.CharField(max_length=200)
     slug = models.SlugField()