This commit is contained in:
Ross
2021-10-25 11:16:54 +01:00
parent a62a778db8
commit 7ec972b73c
3 changed files with 20 additions and 21 deletions
+1 -10
View File
@@ -42,13 +42,7 @@ class BodyPart(models.Model):
return self.bodypart
#class Structure(models.Model):
# structure = models.CharField(max_length=200, primary_key=True)
#
# def __str__(self):
# return self.structure
class Structure2(models.Model):
class Structure(models.Model):
structure = models.CharField(max_length=200, unique=True)
def __str__(self):
@@ -118,9 +112,6 @@ class AnatomyQuestion(models.Model):
#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)
open_access = models.BooleanField(