From 844c55d5a7260e2ebec5e678c44342fdbb345147 Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Wed, 21 Jun 2023 15:41:17 +0200 Subject: [PATCH] =?UTF-8?q?Oprava=20drobnost=C3=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- personalni/admin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/personalni/admin.py b/personalni/admin.py index a00fc6ac..29741888 100644 --- a/personalni/admin.py +++ b/personalni/admin.py @@ -21,7 +21,6 @@ class OsobaAdmin(admin.ModelAdmin): def udelej_orgem(self,request,queryset): org_group = Group.objects.get(name='org') - print(queryset) for o in queryset: if m.Organizator.objects.filter(osoba=o).exists(): continue user = o.user @@ -30,7 +29,7 @@ class OsobaAdmin(admin.ModelAdmin): user.save() org = m.Organizator.objects.create(osoba=o, organizuje_od=datetime.now()) org.save() - udelej_orgem.short_description = "Udělej vybraných osob organizátory" + udelej_orgem.short_description = "Udělej z vybraných osob organizátory" class OsobaInline(admin.TabularInline): model = m.Osoba