Merge pull request #1641 from cca/master

Search signal handler references pk rather than id
pull/1551/head
Karl Hobley 2015-08-26 13:47:33 +01:00
commit b0ffeb6e04
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -10,7 +10,7 @@ def get_indexed_instance(instance):
return
# Make sure that the instance is in its class's indexed objects
if not type(indexed_instance).get_indexed_objects().filter(id=indexed_instance.id).exists():
if not type(indexed_instance).get_indexed_objects().filter(pk=indexed_instance.pk).exists():
return
return indexed_instance