81 lines
3.5 KiB
Plaintext
81 lines
3.5 KiB
Plaintext
on the case details page when mananging series clicking on a select button launches the series popup when it shouldn't.
|
|
|
|
when building the series / stack description for the dv3d viewer we should take into account the plane and contrast if they are defined on the series model.
|
|
|
|
when importing cases we currently get the following error:
|
|
web-1 | 2026-06-03 20:20:04.612 | ERROR | atlas.views:uploads_import_htmx:3578 - Error during uploads import
|
|
web-1 | Traceback (most recent call last):
|
|
web-1 | File "/usr/src/app/atlas/views.py", line 3576, in uploads_import_htmx
|
|
web-1 | imported = import_dicoms_helper(request, case_id=case_id, dicoms=dicoms)
|
|
web-1 | File "/usr/src/app/atlas/api.py", line 280, in import_dicoms_helper
|
|
web-1 | series_image.save()
|
|
web-1 | File "/usr/src/app/generic/models.py", line 390, in save
|
|
web-1 | super().save(*args, **kwargs) # Call the "real" save() method.
|
|
web-1 | File "/opt/venv/lib/python3.14/site-packages/django/db/models/base.py", line 874, in save
|
|
web-1 | self.save_base(
|
|
web-1 | File "/opt/venv/lib/python3.14/site-packages/django/db/models/base.py", line 981, in save_base
|
|
web-1 | post_save.send(
|
|
web-1 | File "/opt/venv/lib/python3.14/site-packages/django/dispatch/dispatcher.py", line 209, in send
|
|
web-1 | response = receiver(signal=self, sender=sender, **named)
|
|
web-1 | File "/usr/src/app/atlas/models.py", line 1382, in _populate_case_study_date_on_series_image_save
|
|
web-1 | tags = instance.basic_dicom_tags or {}
|
|
web-1 | AttributeError: 'SeriesImage' object has no attribute 'basic_dicom_tags'
|
|
web-1 | Internal Server Error: /atlas/uploads/import/case/241
|
|
|
|
please add a unit test that demostrates the failure and then fix the bug and confirm that the unit test then passes.
|
|
|
|
please also check why when I add the
|
|
logger.exception("Error during uploads import")
|
|
error in production this does not seem to get shown anywhere. The only log just showed
|
|
ERROR 03/Jun/2026 11:52:50 django.request:249
|
|
Internal Server Error: /atlas/uploads/import
|
|
the online local settings are
|
|
DEBUG = False
|
|
INTERNAL_IPS = ["82.69.88.125", "217.155.198.96"]
|
|
#SECURE_SSL_REDIRECT = False
|
|
#SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'http')
|
|
#REMOTE_URL = "http://46.101.13.46:8123"
|
|
#
|
|
#MEDIA_ROOT = '/home/django/rad/media/'
|
|
STATIC_ROOT = '/home/ross/web/static/'
|
|
|
|
#EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
|
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
|
|
|
|
if not DEBUG:
|
|
LOGGING = {
|
|
'version': 1,
|
|
'disable_existing_loggers': False,
|
|
'formatters': {
|
|
'verbose': {
|
|
'format' : "[%(asctime)s] %(levelname)s [%(name)s:%(lineno)s] %(message)s",
|
|
'datefmt' : "%d/%b/%Y %H:%M:%S"
|
|
},
|
|
'simple': {
|
|
'format': '%(levelname)s %(message)s'
|
|
},
|
|
},
|
|
'handlers': {
|
|
'file': {
|
|
'level': 'DEBUG',
|
|
'class': 'logging.FileHandler',
|
|
'filename': 'log.txt',
|
|
'formatter': 'verbose'
|
|
},
|
|
},
|
|
'loggers': {
|
|
'django': {
|
|
'handlers':['file'],
|
|
'propagate': True,
|
|
'level':'DEBUG',
|
|
},
|
|
'atlas': {
|
|
'handlers': ['file'],
|
|
'level': 'DEBUG',
|
|
},
|
|
#"django.core.mail": {"handlers": ["console"], "level": "DEBUG", "propagate": False},
|
|
#"smtplib": {"handlers": ["console"], "level": "DEBUG", "propagate": False},
|
|
}
|
|
}
|
|
|