fix questions

This commit is contained in:
Ross
2020-11-26 18:21:35 +00:00
parent 8b52a10d72
commit 9633806d01
4 changed files with 47 additions and 5 deletions
+3 -3
View File
@@ -37,10 +37,10 @@ class BodyPart(models.Model):
class Structure(models.Model):
bodypart = models.CharField(max_length=200)
structure = models.CharField(max_length=200)
def __str__(self):
return self.bodypart
return self.structure
class Modality(models.Model):
@@ -193,7 +193,7 @@ class Answer(models.Model):
class Exam(models.Model):
name = models.CharField(max_length=200)
exam_questions = models.ManyToManyField(AnatomyQuestion,
related_name="exams")
related_name="exams", blank="true")
active = models.BooleanField(help_text="If an exam should be available",
default=True)