Skip to content

Commit baddb70

Browse files
committed
1 parent 8289d02 commit baddb70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

celery_haystack/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def get_instance(self, model_class, pk, **kwargs):
6767
logger = self.get_logger(**kwargs)
6868
instance = None
6969
try:
70-
instance = model_class._default_manager.get(pk=int(pk))
70+
instance = model_class._default_manager.get(pk=pk)
7171
except model_class.DoesNotExist:
7272
logger.error("Couldn't load %s.%s.%s. Somehow it went missing?" %
7373
(model_class._meta.app_label.lower(),

0 commit comments

Comments
 (0)