Skip to content
This repository was archived by the owner on Feb 20, 2019. It is now read-only.

Fix errors in contrib.django.tasks #258

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

ei-grad
Copy link

@ei-grad ei-grad commented Sep 7, 2014

No description provided.

@@ -54,12 +54,12 @@ def update_in_index(sender, instance, **kw):
for id_list in chunked(ids, chunk_size):
documents = []

for obj in model.objects.filter(id__in=id_list):
for obj in model.objects.filter(pk__in=id_list):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to change this here, you have to change it everywhere else, too. Currently, ElasticUtils requires that you use id and won't work with non-id primary keys.

StandardError is deprecated in python 3.x. Exception should be used instead.
@willkg
Copy link
Member

willkg commented Sep 11, 2014

For the record, when you update a branch, github doesn't send any notifications, so no one knows unless you also add a comment stating you updated the branch.

@willkg
Copy link
Member

willkg commented Sep 11, 2014

I think all the failures are because Travis is running the tests in a Django 1.7 environment and that's failing. I created issue #259 to cover that.

I need to spend some more time double-checking this PR.

@toopy
Copy link

toopy commented Nov 4, 2014

Should be fixed with: #272

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants