From: Bryan Date: Tue, 14 Jan 2014 08:59:08 +0000 (-0500) Subject: fixing iteration X-Git-Tag: release-20150131~249 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1437687ae44febe7a09a30185b8450b949862f8f;p=oweals%2Fkarmaworld.git fixing iteration --- diff --git a/karmaworld/apps/notes/management/commands/populate_indexden.py b/karmaworld/apps/notes/management/commands/populate_indexden.py index 2ce3835..8aefeb6 100644 --- a/karmaworld/apps/notes/management/commands/populate_indexden.py +++ b/karmaworld/apps/notes/management/commands/populate_indexden.py @@ -14,7 +14,7 @@ class Command(BaseCommand): "in the index that are not overwritten will still be around." def handle(self, *args, **kwargs): - for note in Note.object.iterator(): + for note in Note.objects.iterator(): try: print "Indexing {n}".format(n=note) add_document(note) diff --git a/karmaworld/apps/notes/management/commands/populate_s3.py b/karmaworld/apps/notes/management/commands/populate_s3.py index fa19d96..9974125 100644 --- a/karmaworld/apps/notes/management/commands/populate_s3.py +++ b/karmaworld/apps/notes/management/commands/populate_s3.py @@ -19,7 +19,7 @@ class Command(BaseCommand): """ def handle(self, *args, **kwargs): - for note in Note.object.iterator(): + for note in Note.objects.iterator(): if note.static_html: # don't reprocess notes that are already on S3. continue