<filename>tools/mass_save.py
import django, sys, os, json

sys.path.append("/var/projects/museum/")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "museum.settings")
django.setup()

from museum_site.models import *

def main():
    """
    This calls .save() on every File object.
    """
    #for f in File.objects.all():
    for f in File.objects.filter(total_boards=None).order_by("-letter"):
        if f.id == 2320:
            continue # Don't fuck with the AOL compilation
        try:
            print(f)
            f.save()
        except:
            print("Couldn't save", f)

    return True

if __name__ == "__main__":main()

<filename>tools/mass_save.py
import django, sys, os, json

sys.path.append("/var/projects/museum/")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "museum.settings")
django.setup()

from museum_site.models import *

def main():
    """
    This calls .save() on every File object.
    """
    #for f in File.objects.all():
    for f in File.objects.filter(total_boards=None).order_by("-letter"):
        if f.id == 2320:
            continue # Don't fuck with the AOL compilation
        try:
            print(f)
            f.save()
        except:
            print("Couldn't save", f)

    return True

if __name__ == "__main__":main()

This calls .save() on every File object. #for f in File.objects.all(): # Don't fuck with the AOL compilation