We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d8b008 commit 74335ddCopy full SHA for 74335dd
polls/models.py
@@ -5,7 +5,7 @@ class Question(models.Model):
5
question_text = models.CharField(max_length=200)
6
pub_date = models.DateTimeField('date published')
7
8
- def __str__(self):
+ def __str__(self) -> str:
9
return self.question_text
10
11
@@ -14,6 +14,6 @@ class Choice(models.Model):
14
choice_text = models.CharField(max_length=200)
15
votes = models.IntegerField(default=0)
16
17
18
19
0 commit comments