X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/d83b04cb2d40247e0c61ad7d01369207c6de96e1..9d6c41a8d4518ba851c9de7426abe49de0660077:/wtem/admin.py diff --git a/wtem/admin.py b/wtem/admin.py index 2fa38aa..4621f5f 100644 --- a/wtem/admin.py +++ b/wtem/admin.py @@ -10,7 +10,7 @@ from django.http import HttpResponse from django.template.loader import render_to_string from django.utils.safestring import mark_safe -from wtem.models import Confirmation +from wtem.models import Confirmation, CompetitionState from .middleware import get_current_request from .models import Submission, Assignment, Attachment, exercises @@ -240,8 +240,8 @@ def report_view(request): class ConfirmationAdmin(admin.ModelAdmin): - list_display = ('email', 'first_name', 'last_name', 'confirmed') - readonly_fields = ('contact', 'readable_contact', 'key', 'confirmed') + list_display = ('email', 'first_name', 'last_name', 'readable_contact', 'readable_age', 'confirmed') + readonly_fields = ('contact', 'readable_contact', 'readable_age', 'key', 'confirmed') def resend_mail(self, request, queryset): for confirmation in queryset: @@ -253,3 +253,4 @@ class ConfirmationAdmin(admin.ModelAdmin): admin.site.register(Submission, SubmissionAdmin) admin.site.register(Assignment) admin.site.register(Confirmation, ConfirmationAdmin) +admin.site.register(CompetitionState)