From: Aleksander Łukasz Date: Tue, 12 Nov 2013 09:58:01 +0000 (+0100) Subject: Tweaking admin labels X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/31616af54ad101b9926cce57c96ae327179a5990?ds=sidebyside Tweaking admin labels --- 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():