oprava chybové hlášky
This commit is contained in:
parent
491f91cf47
commit
fad2c6940d
1 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,8 @@ def sjednot_telefony(admin, request, queryset):
|
|||
else:
|
||||
raise ValueError
|
||||
except:
|
||||
print("Hmm má divné číslo - " + o.telefon + " - " + str(o.id))
|
||||
admin.message_user(request, f"{o.jmeno} {o.prijmeni} (id: {o.id}) má divný telefon: {o.telefon}", level=ERROR)
|
||||
admin.message_user(request, "Telefony sjednoceny.", level=SUCCESS)
|
||||
|
||||
# Tohle chceme umět použít i z ResitelAdmin
|
||||
@admin.action(description="Udělej z vybraných osob organizátory")
|
||||
|
|
Loading…
Reference in a new issue