.
This commit is contained in:
+10
-2
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user