.
This commit is contained in:
@@ -15,6 +15,7 @@ admin.site.register(Abnormality)
|
||||
admin.site.register(Region)
|
||||
admin.site.register(RapidCreationDefault)
|
||||
admin.site.register(Answer)
|
||||
admin.site.register(RapidImage)
|
||||
|
||||
class RapidAnswersInline(admin.TabularInline):
|
||||
model = Answer
|
||||
|
||||
@@ -453,6 +453,7 @@ class RapidImage(models.Model):
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
"""Override save method to add image hash"""
|
||||
# TODO: consider moving to signal to reuse across apps
|
||||
if self.image:
|
||||
# Try and read the file as a dicom
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user