From e4c51874dc96f585cc1035c23a703ae5b358ad07 Mon Sep 17 00:00:00 2001 From: "J.G. Rubingh" Date: Fri, 27 Nov 2020 12:48:50 +0100 Subject: [PATCH] Add admin --- webservice/apps/synthea/admin.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webservice/apps/synthea/admin.py b/webservice/apps/synthea/admin.py index 8c38f3f..6573ea4 100644 --- a/webservice/apps/synthea/admin.py +++ b/webservice/apps/synthea/admin.py @@ -1,3 +1,10 @@ from django.contrib import admin +from .models import Synthea # Register your models here. +@admin.register(Synthea) +class SyntheaAdmin(admin.ModelAdmin): + list_display = ('id', 'state','population', 'gender','age','module') + ordering = ('-created_at', ) + search_fields = ('state', 'module',) + readonly_fields = ('created_at', 'updated_at') \ No newline at end of file