fix issue

pull/223/head
vapao 2020-11-10 09:31:09 +08:00
parent 6978383b53
commit d3959cc5a0
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ import os
# v2.3.14 临时数据初始化 # v2.3.14 临时数据初始化
ap = App.objects.first() ap = App.objects.first()
if ap and ap.sort_id == 0: if ap and hasattr(ap, 'sort_id') and ap.sort_id == 0:
for ap in App.objects.all(): for ap in App.objects.all():
ap.sort_id = ap.id ap.sort_id = ap.id
ap.save() ap.save()