prazdy string -> continue

This commit is contained in:
ticvac 2024-06-15 23:27:42 +02:00
parent fad2c6940d
commit cf3c9f6f80

View file

@ -8,6 +8,8 @@ from datetime import datetime
@admin.action(description="Sjednoť telefony")
def sjednot_telefony(admin, request, queryset):
for o in queryset:
if o.telefon == '':
continue
try:
telefon = int(o.telefon.replace(" ", "").replace("+", ""))
# 6 míst