diff --git a/judge/admin/comments.py b/judge/admin/comments.py index d69c1c6df5..a0e28b5633 100644 --- a/judge/admin/comments.py +++ b/judge/admin/comments.py @@ -51,7 +51,7 @@ def unhide_comment(self, request, queryset): '%d comments successfully unhidden.', count) % count) - @admin.display(description=_('Associated page'), ordering='page') + @admin.display(description=_('associated page'), ordering='page') def linked_page(self, obj): link = obj.link if link is not None: diff --git a/judge/admin/problem.py b/judge/admin/problem.py index 9a2150a194..c78c0981f6 100644 --- a/judge/admin/problem.py +++ b/judge/admin/problem.py @@ -174,7 +174,7 @@ def get_readonly_fields(self, request, obj=None): fields += ('description',) return fields - @admin.display(description=_('Authors')) + @admin.display(description=_('authors')) def show_authors(self, obj): return ', '.join(map(attrgetter('user.username'), obj.authors.all())) diff --git a/judge/admin/profile.py b/judge/admin/profile.py index 67466e5c1c..7bddd5fd8d 100644 --- a/judge/admin/profile.py +++ b/judge/admin/profile.py @@ -92,15 +92,15 @@ def show_public(self, obj): return format_html('{1}', obj.get_absolute_url(), gettext('View on site')) - @admin.display(description=_('User'), ordering='user__username') + @admin.display(description=_('user'), ordering='user__username') def admin_user_admin(self, obj): return obj.username - @admin.display(description=_('Email'), ordering='user__email') + @admin.display(description=_('email'), ordering='user__email') def email(self, obj): return obj.user.email - @admin.display(description=_('Timezone'), ordering='timezone') + @admin.display(description=_('timezone'), ordering='timezone') def timezone_full(self, obj): return obj.timezone diff --git a/judge/admin/submission.py b/judge/admin/submission.py index fb05d31123..aa3889d304 100644 --- a/judge/admin/submission.py +++ b/judge/admin/submission.py @@ -207,23 +207,23 @@ def recalculate_score(self, request, queryset): '%d submissions were successfully rescored.', len(submissions)) % len(submissions)) - @admin.display(description=_('Problem code'), ordering='problem__code') + @admin.display(description=_('problem code'), ordering='problem__code') def problem_code(self, obj): return obj.problem.code - @admin.display(description=_('Problem name'), ordering='problem__name') + @admin.display(description=_('problem name'), ordering='problem__name') def problem_name(self, obj): return obj.problem.name - @admin.display(description=_('User'), ordering='user__user__username') + @admin.display(description=_('user'), ordering='user__user__username') def user_column(self, obj): return obj.user.user.username - @admin.display(description=_('Time'), ordering='time') + @admin.display(description=_('time'), ordering='time') def execution_time(self, obj): return round(obj.time, 2) if obj.time is not None else 'None' - @admin.display(description=_('Memory'), ordering='memory') + @admin.display(description=_('memory'), ordering='memory') def pretty_memory(self, obj): memory = obj.memory if memory is None: @@ -233,7 +233,7 @@ def pretty_memory(self, obj): else: return gettext('%.2f MB') % (memory / 1024) - @admin.display(description=_('Language'), ordering='language__name') + @admin.display(description=_('language'), ordering='language__name') def language_column(self, obj): return obj.language.name