Commit 15a6402e authored by Luis García's avatar Luis García
Browse files

Fix questin types

parent 0beda7c4
......@@ -23,7 +23,7 @@ class Poll(models.Model):
# Model for questions
class Question(models.Model):
TYPE_CHOICES=[('quick', 'Quick'),('healt', 'Healt'),]
TYPE_CHOICES=[('quick', 'Quick'),('health', 'Health'),]
content = models.CharField(verbose_name='Content', max_length=200)
poll = models.ForeignKey(Poll, verbose_name='Poll', on_delete=models.PROTECT, related_name='questions')
type = models.CharField(verbose_name='Type', max_length=20, choices=TYPE_CHOICES, default='x')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment