This commit is contained in:
Ross
2021-02-05 11:10:59 +00:00
parent b8cb09b5c5
commit d8167aa95f
13 changed files with 134 additions and 52 deletions
+2 -7
View File
@@ -13,6 +13,8 @@ from sortedm2m.fields import SortedManyToManyField
import string
from generic.models import Examination
image_storage = FileSystemStorage(
# Physical file location ROOT
location=u"{0}/anatomy/".format(settings.MEDIA_ROOT),
@@ -26,13 +28,6 @@ def image_directory_path(instance, filename):
return u"picture/{0}".format(filename)
class Examination(models.Model):
examination = models.CharField(max_length=200)
def __str__(self):
return self.examination
class BodyPart(models.Model):
bodypart = models.CharField(max_length=200)