From eca8d2edb8d2f9b6b746fad59996722e88d8b5d4 Mon Sep 17 00:00:00 2001 From: Bryan Date: Tue, 14 Jan 2014 03:59:08 -0500 Subject: [PATCH] fixing iteration --- karmaworld/apps/notes/management/commands/populate_indexden.py | 2 +- karmaworld/apps/notes/management/commands/populate_s3.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1