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