fixing iteration
authorBryan <btbonval@gmail.com>
Tue, 14 Jan 2014 08:59:08 +0000 (03:59 -0500)
committerBryan <btbonval@gmail.com>
Thu, 16 Jan 2014 01:30:33 +0000 (20:30 -0500)
karmaworld/apps/notes/management/commands/populate_indexden.py
karmaworld/apps/notes/management/commands/populate_s3.py

index 2ce38358043f371dd9a042a145076dcc79e11622..8aefeb6f2e562fd45509b53ecc0484da8c29dff4 100644 (file)
@@ -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)
index fa19d96bde1f1ba7e69555c9d7d516c84c6bf0b4..99741257a0881952adbc1c2f93210e944e23f258 100644 (file)
@@ -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