misc-fred/grandlyon/scripts/fsck-combo.py

8 lines
259 B
Python

# run .save() to fill cached properties
from combo.apps.wcs.models import WcsFormCell, WcsCategoryCell, WcsFormsOfCategoryCell
for obj_type in (WcsFormCell, WcsCategoryCell, WcsFormsOfCategoryCell):
for obj in obj_type.objects.all():
obj.save()