소스 검색

Update migration

Daniel Sheppard 1 년 전
부모
커밋
68d0b58293
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      netbox/ipam/migrations/0079_ipaddress_prefix.py

+ 2 - 0
netbox/ipam/migrations/0079_ipaddress_prefix.py

@@ -24,6 +24,8 @@ def set_prefix(apps, schema_editor):
     addresses = IPAddress.objects.all()
     i = 0
     total = addresses.count()
+    if total > 0:
+        print('\r\n')
     draw_progress(i, total, 50)
     for ip in addresses:
         i += 1