Dear all I am wondering if you can help me??
I have a list of questions with a list of multiple choice answers.
I am trying to get details of a user who will then answer the questions and
store their answers next to their name. The questions/answers may change
I have the following code is this correct can you help please?
from django.db import models
Investor = models.CharField(max_length=100, default="")
Question_text = models.TextField(max_length=200,default="")
Question = models.ForeignKey(Question, on_delete=models.CASCADE)
Option = models.CharField(max_length=50, default="")
Investor = models.ForeignKey(Investor, on_delete=models.CASCADE, default="")
Question = models.OneToOneField(
Answer = models.OneToOneField(
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to email@example.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.