mirror of https://github.com/openspug/spug
fix issue
parent
6978383b53
commit
d3959cc5a0
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue