akce na sjednoceni cisel do +420 123 456 789 #53

Merged
zelvuska merged 3 commits from sjednoceni_telefonu into master 2024-06-15 23:33:25 +02:00
Showing only changes of commit cf3c9f6f80 - Show all commits

View file

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