File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ the following two models:
13
13
from django.db import models
14
14
15
15
class Question (models .Model ):
16
- question_text = models.CharField(max_length = 200 )
17
- pub_date = models.DateTimeField(' date published' )
18
- def __str__ (self ):
19
- return str (self .rating)
16
+ question_text = models.CharField(max_length = 200 )
17
+ pub_date = models.DateTimeField(' date published' )
18
+ def __str__ (self ):
19
+ return str (self .rating)
20
20
21
21
class Choice (models .Model ):
22
- question = models.ForeignKey(Question, on_delete = models.CASCADE )
23
- choice_text = models.CharField(max_length = 200 )
24
- votes = models.IntegerField(default = 0 )
22
+ question = models.ForeignKey(Question, on_delete = models.CASCADE )
23
+ choice_text = models.CharField(max_length = 200 )
24
+ votes = models.IntegerField(default = 0 )
You can’t perform that action at this time.
0 commit comments