From 31616af54ad101b9926cce57c96ae327179a5990 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Tue, 12 Nov 2013 10:58:01 +0100 Subject: [PATCH] Tweaking admin labels --- wtem/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wtem/admin.py b/wtem/admin.py index 72c2042..08cff0d 100644 --- a/wtem/admin.py +++ b/wtem/admin.py @@ -132,10 +132,11 @@ class SubmissionAdmin(admin.ModelAdmin): user_exercises = get_user_exercises(user) user_marks = submission.marks.get(str(user.id), {}) return ','.join([str(e['id']) for e in user_exercises if str(e['id']) not in user_marks.keys()]) + todo.short_description = 'Twoje nieocenione zadania' def examiners_repr(self, submission): return ', '.join([u.username for u in submission.examiners.all()]) - examiners_repr.short_description = 'Przypisani' + examiners_repr.short_description = 'Przypisani do zgłoszenia' def save_model(self, request, submission, form, change): for name, value in form.cleaned_data.items(): -- 2.20.1