Initial audit of the document index app

Add keyword arguments to calls. Sort methods and parameters.

Signed-off-by: Roberto Rosario <Roberto.Rosario.Gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-01-02 19:16:32 -04:00
parent 82651ff32c
commit 3dc8df46b9
12 changed files with 160 additions and 128 deletions

View File

@@ -15,7 +15,7 @@ class IndexManager(models.Manager):
return self.get(slug=slug)
def index_document(self, document):
for index in self.filter(enabled=True, document_types=document.document_type):
for index in self.filter(document_types=document.document_type, enabled=True):
index.index_document(document=document)
def rebuild(self):