update the format

main
roger 2 years ago
parent 1820dca352
commit b1a10b3598
  1. 1
      polls/models.py

@ -17,6 +17,7 @@ class Question(models.Model):
now = timezone.now()
return now - datetime.timedelta(days=1) <= self.pub_date <= now
class Choice(models.Model):
question = models.ForeignKey(Question, on_delete=models.CASCADE)
choice_text = models.CharField(max_length=200)

Loading…
Cancel
Save