Commit fec715e8 authored by Jean Michel Rouly's avatar Jean Michel Rouly

Questons are now for a specific section.

parent e3020e49
......@@ -12,6 +12,7 @@ class Question( models.Model ):
date = models.DateTimeField(default=timezone.now())
text = models.TextField(max_length=1000)
rating = models.IntegerField(default=0)
section = models.TextField(max_length=10, blank=False)
class Meta:
ordering = ["-rating"]
......
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