<reponame>praiseG/DABS-Django-Backend<gh_stars>1-10
from django.contrib import admin
from .models import Patient
# Register your models here.


class PatientModelAdmin(admin.ModelAdmin):
    list_display = (
        'name',
        'email',
        'mobile',
        'age',
        'disability',
        'registered_by',
        'registered_on',
    )
    search_fields = ('name', 'email', 'mobile', )
    ordering = ('registered_on', 'name', 'email', )

admin.site.register(Patient, PatientModelAdmin)

from django.contrib import admin
from .models import Patient
# Register your models here.


class PatientModelAdmin(admin.ModelAdmin):
    list_display = (
        'name',
        'email',
        'mobile',
        'age',
        'disability',
        'registered_by',
        'registered_on',
    )
    search_fields = ('name', 'email', 'mobile', )
    ordering = ('registered_on', 'name', 'email', )

admin.site.register(Patient, PatientModelAdmin)
# Register your models here.