.
This commit is contained in:
+2
-2
@@ -143,13 +143,13 @@ class Long(models.Model):
|
||||
class LongSeriesImage(models.Model):
|
||||
image = models.ImageField(upload_to=image_directory_path, storage=image_storage)
|
||||
position = models.IntegerField(default=0)
|
||||
series = models.ForeignKey("LongSeries", related_name="series", on_delete=models.SET_NULL, null=True)
|
||||
series = models.ForeignKey("LongSeries", related_name="images", on_delete=models.SET_NULL, null=True)
|
||||
|
||||
class LongSeries(models.Model):
|
||||
modality = models.ForeignKey(Modality, related_name="series_modality", on_delete=models.SET_NULL, null=True)
|
||||
examination = models.ForeignKey(
|
||||
Examination, help_text="Name of the examination", on_delete=models.SET_NULL, null=True)
|
||||
long = models.ForeignKey("Long", related_name="long", on_delete=models.SET_NULL, null=True)
|
||||
long = models.ForeignKey("Long", related_name="series", on_delete=models.SET_NULL, null=True)
|
||||
description = models.TextField(blank=True, help_text="Description of stack, for admin organisation")
|
||||
|
||||
def get_examinations(self):
|
||||
|
||||
Reference in New Issue
Block a user