Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.db import models
- from django.contrib.auth.models import User
- # Create your models here.
- class MatchQuestions(models.Model):
- question = models.CharField(max_length=350)
- weight = models.SmallIntegerField()
- order = models.SmallIntegerField()
- howImportant = models.CharField(max_length=350)
- class Choice(models.Model):
- question = models.ForeignKey(MatchQuestions)
- choice = models.CharField(max_length=350)
- class Answer(models.Model):
- user = models.ForeignKey(User)
- question = models.ForeignKey(MatchQuestions)
- choice = models.ForeignKey(Choice)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement