diff --git a/competition/admin.py b/competition/admin.py index 3151a58..bf7caa8 100644 --- a/competition/admin.py +++ b/competition/admin.py @@ -2,11 +2,21 @@ from django.http import HttpResponseRedirect from competition.models import (Comment, Competition, Event, EventRegistration, - LateTag, Problem, ProblemCorrection, + Grade, LateTag, Problem, ProblemCorrection, Publication, RegistrationLink, Semester, Series, Solution) +@admin.register(Grade) +class GradeAdmin(admin.ModelAdmin): + list_display = ( + 'name', + 'tag', + 'years_until_graduation', + 'is_active' + ) + + @admin.register(Competition) class CompetitionAdmin(admin.ModelAdmin): list_display = ( diff --git a/competition/models.py b/competition/models.py index 8af195f..7da265a 100644 --- a/competition/models.py +++ b/competition/models.py @@ -810,8 +810,8 @@ def __str__(self): class ProblemCorrection(models.Model): # TODO: Add images class Meta: - verbose_name = 'opravenie úlohy' - verbose_name_plural = 'opravene ulohy' + verbose_name = 'Opravenie úlohy' + verbose_name_plural = 'Opravené úlohy' problem = models.OneToOneField( Problem,