From: Charles Connell Date: Tue, 11 Mar 2014 20:19:59 +0000 (-0400) Subject: Little polish X-Git-Tag: release-20150131~148^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e85d0abda10db36becbe926ce68147a8417e58c3;p=oweals%2Fkarmaworld.git Little polish --- diff --git a/karmaworld/apps/notes/management/commands/populate_filepicker.py b/karmaworld/apps/notes/management/commands/populate_filepicker.py index dcf556c..85ec805 100644 --- a/karmaworld/apps/notes/management/commands/populate_filepicker.py +++ b/karmaworld/apps/notes/management/commands/populate_filepicker.py @@ -22,7 +22,7 @@ class Command(BaseCommand): """ def handle(self, *args, **kwargs): - for note in Note.objects.iterator(): + for note in Note.objects.filter(fp_file='').iterator(): if note.fp_file.name: print "Skipping {0}".format(str(note)) continue @@ -76,4 +76,4 @@ class Command(BaseCommand): note.save() - + print "Successfully fixed {0}".format(str(note))