diff --git a/docs/samples.rst b/docs/samples.rst index 4d9ef417a2..3e20575e24 100644 --- a/docs/samples.rst +++ b/docs/samples.rst @@ -13,12 +13,12 @@ the following two models: from django.db import models class Question(models.Model): - question_text = models.CharField(max_length=200) - pub_date = models.DateTimeField('date published') - def __str__(self): - return str(self.rating) + question_text = models.CharField(max_length=200) + pub_date = models.DateTimeField('date published') + def __str__(self): + return str(self.rating) class Choice(models.Model): - question = models.ForeignKey(Question, on_delete=models.CASCADE) - choice_text = models.CharField(max_length=200) - votes = models.IntegerField(default=0) + question = models.ForeignKey(Question, on_delete=models.CASCADE) + choice_text = models.CharField(max_length=200) + votes = models.IntegerField(default=0)