Reference¶
Submodules¶
django_mri.admin module¶
Registers various admin
models to generate the app’s
admin site interface.
References
-
class
django_mri.admin.
ScanAdmin
(model, admin_site)¶ Bases:
django.contrib.admin.options.ModelAdmin
Adds the
Scan
to the admin interface.-
list_display
= ('id', 'subject', 'time', 'number', 'description')¶ Fields displayed on the change list page of the admin.
-
media
¶
-
ordering
= ('subject', 'time', 'number')¶ List ordering in the Django admin views.
-
django_mri.apps module¶
Definition of the DjangoMriConfig
class.
References
django_mri.signals module¶
Signal receivers.
References
-
django_mri.signals.
scan_post_save_receiver
(sender: django.db.models.base.Model, instance: django_mri.models.scan.Scan, created: bool, **kwargs) → None¶ Creates a new subject automatically if a subject was not assigned and a DICOM series is accessible by extracting the
Patient
information.Parameters: