This commit is contained in:
Ross
2021-10-25 11:05:15 +01:00
parent dbe64c0ec5
commit aa76d10f43
6 changed files with 55 additions and 22 deletions
+10 -2
View File
@@ -48,6 +48,11 @@ class Structure(models.Model):
def __str__(self):
return self.structure
class Structure2(models.Model):
structure = models.CharField(max_length=200, unique=True)
def __str__(self):
return self.structure
class Region(models.Model):
region = models.CharField(max_length=200)
@@ -110,8 +115,11 @@ class AnatomyQuestion(models.Model):
body_part = models.ForeignKey(
BodyPart, on_delete=models.SET_NULL, null=True, blank=True
)
structure = models.ForeignKey(
Structure, on_delete=models.SET_NULL, null=True, blank=True
#structure = models.ForeignKey(
# Structure, on_delete=models.SET_NULL, null=True, blank=True
#)
structure = models.CharField(
max_length=255, null=True
)
created_date = models.DateTimeField(default=timezone.now)