prazdy string -> continue
This commit is contained in:
parent
fad2c6940d
commit
cf3c9f6f80
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue