class Test(models.Model):
name = models.CharField(max_length=50)
class TestDetails(models.Model):
user = models.ForeignKey(User,on_delete = models.CASCADE)
test = models.ForeignKey(Test,on_delete = models.CASCADE)
mark = models.IntegerField(default=0)
当用户注册测试时,我会创建一个TestDetails。我需要获取用户未注册的测试列表。