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