django test by perfecto

This commit is contained in:
pErfEcto2
2023-05-04 11:31:11 +03:00
parent d0d2a37782
commit d8897febc5
36 changed files with 298 additions and 0 deletions
@@ -0,0 +1,12 @@
from django.db import models
class Question(models.Model):
question_text = models.CharField(max_length=256)
pub_date = models.DateTimeField("date published")
class Choice(models.Model):
question = models.ForeignKey(Question, on_delete=models.CASCADE)
choice_text = models.CharField(max_length=256)
votes = models.IntegerField(default=0)