Skip to content

Commit

Permalink
Show batch query results in Django admin
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack committed Aug 7, 2023
1 parent bf2615f commit ab88f45
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion adit/batch_query/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,27 @@

from adit.core.admin import DicomJobAdmin, DicomTaskAdmin

from .models import BatchQueryJob, BatchQuerySettings, BatchQueryTask
from .models import BatchQueryJob, BatchQueryResult, BatchQuerySettings, BatchQueryTask


class BatchQueryResultAdmin(admin.ModelAdmin):
list_display = (
"id",
"job_id",
"query_id",
"patient_id",
"study_date",
"modalities",
"study_description",
"series_description",
"pseudonym",
)


admin.site.register(BatchQueryJob, DicomJobAdmin)

admin.site.register(BatchQueryResult, BatchQueryResultAdmin)

admin.site.register(BatchQueryTask, DicomTaskAdmin)

admin.site.register(BatchQuerySettings, admin.ModelAdmin)

0 comments on commit ab88f45

Please sign in to comment.