bgneal@843: """ bgneal@843: This command calls save() on all bandmap entries. bgneal@843: bgneal@843: This causes the html field to be rebuilt. This is the text displayed inside the bgneal@843: "balloon" on the map when a band's marker is clicked. bgneal@843: bgneal@843: """ bgneal@843: from django.core.management.base import NoArgsCommand bgneal@843: bgneal@843: from bandmap.models import BandEntry bgneal@843: bgneal@843: bgneal@843: class Command(NoArgsCommand): bgneal@843: help = "This command rebuilds the html field on all bandmap entries." bgneal@843: bgneal@843: def handle_noargs(self, **kwargs): bgneal@843: bgneal@843: for band in BandEntry.objects.all().iterator(): bgneal@843: band.save()