From 45fe78a16b4d5761fe2362a1f016b483b61dc256 Mon Sep 17 00:00:00 2001 From: Ross Date: Tue, 30 Nov 2021 21:05:52 +0000 Subject: [PATCH] . --- atlas/admin.py | 7 +++++++ atlas/tables.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/atlas/admin.py b/atlas/admin.py index 69c38f8b..3f56a2d3 100755 --- a/atlas/admin.py +++ b/atlas/admin.py @@ -33,6 +33,9 @@ admin.site.register(SeriesFinding) admin.site.register(Differential) +class DifferentialInline(admin.TabularInline): + model = Differential + class AtlasAdminForm(ModelForm): class Meta: model = Case @@ -58,6 +61,10 @@ class AtlasAdminForm(ModelForm): "discussion": TinyMCE(attrs={"cols": 80, "rows": 30}), } + inlines = ( + DifferentialInline + ) + class AtlasAdmin(VersionAdmin): form = AtlasAdminForm diff --git a/atlas/tables.py b/atlas/tables.py index d28c7050..99bdba18 100755 --- a/atlas/tables.py +++ b/atlas/tables.py @@ -80,7 +80,7 @@ class AtlasTable(tables.Table): class Meta: model = Case template_name = "django_tables2/bootstrap4.html" - fields = ("description", "history", "created_date", "author") + fields = ("title", "description", "history", "created_date", "author") sequence = ("view", "series", "exams")