2020-11-13 15:31:14 +01:00
|
|
|
from django.contrib import admin
|
2020-11-27 12:48:50 +01:00
|
|
|
from .models import Synthea
|
2020-11-13 15:31:14 +01:00
|
|
|
|
|
|
|
# Register your models here.
|
2020-11-27 12:48:50 +01:00
|
|
|
@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')
|