Skip to content

Commit

Permalink
Pridaný grade admin (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe authored Nov 23, 2024
1 parent a0392ec commit 7002e86
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion competition/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down
4 changes: 2 additions & 2 deletions competition/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7002e86

Please sign in to comment.