Skip to content

Commit

Permalink
perform using the __call__ method
Browse files Browse the repository at this point in the history
  • Loading branch information
binarymatt committed Dec 13, 2013
1 parent db947cb commit df87e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_pyres/decorators.py
Expand Up @@ -25,7 +25,7 @@ def __init__(self, func, queue):

# Allow this class to be called by pyres
self.queue = str(queue)
self.perform = self.func
self.perform = self.__call__

# Wrap func
update_wrapper(self, func)
Expand Down

0 comments on commit df87e84

Please sign in to comment.