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