Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.3 kB
1
Indexable
Never
from django.contrib import admin
from .models import Symptom, Examination, Diagnostics, Therapy, Analise, Question, ESSDAI

class SymptomAdmin(admin.ModelAdmin):
    list_display = ('idTypeSymp', 'idPacient', 'description', 'data')

class ExaminationAdmin(admin.ModelAdmin):
    list_display = ('idTypeExam', 'idPacient', 'description', 'data', 'upload')

class DiagnosticsAdmin(admin.ModelAdmin):
    list_display = ('idDoenca', 'idPacient', 'idRelative', 'description')

class TherapyAdmin(admin.ModelAdmin):
    list_display = ('idDrag', 'idPacient', 'description', 'data', 'dataInit', 'dataEnd')

class AnaliseAdmin(admin.ModelAdmin):
    list_display = ('idAnalise', 'idPacient', 'value', 'data', 'description', 'upload')

class QuestionAdmin(admin.ModelAdmin):
    list_display = ('question', 'maxValue')

class ESSDAIAdmin(admin.ModelAdmin):
    list_display = ('idQuestion', 'idPacient', 'value', 'data')

admin.site.register(Symptom, SymptomAdmin)
admin.site.register(Examination, ExaminationAdmin)
admin.site.register(Diagnostics, DiagnosticsAdmin)
admin.site.register(Therapy, TherapyAdmin)
admin.site.register(Analise, AnaliseAdmin)
admin.site.register(Question, QuestionAdmin)
admin.site.register(ESSDAI, ESSDAIAdmin)