Skip to content
This repository has been archived by the owner on Nov 3, 2019. It is now read-only.

Questions Map to Assignments #2

Closed
Bhupesh-V opened this issue Jul 5, 2019 · 0 comments
Closed

Questions Map to Assignments #2

Bhupesh-V opened this issue Jul 5, 2019 · 0 comments

Comments

@Bhupesh-V
Copy link
Collaborator

Bhupesh-V commented Jul 5, 2019

In the following class

class Questions(models.Model):
	assignment=models.ForeignKey(codeclassroom,on_delete=models.CASCADE)
content=models.CharField(max_length=2000,blank=False)

I am not sure what you meant by codeclassroom
I guess Foreign Key should be Assignments

Also
the response class needs a bit explaning.

class Respopnse(models.Model):
	question = models.ForeignKey(Questions,on_delete=models.CASCADE)
	student = models.ForeignKey(Student,on_delete=models.CASCADE)
	answer = models.CharField(max_length=40000,blank=False)
	remark = models.CharField(max_length=500,blank=True)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant