You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interesting issue. Besides not knowing if this would work if the partial issue is fixed, the partial issue by itself is worth being fixed. I'm more than happy to review and merge any pull request fixing that issue. Sadly, I won't be able to provide a fix soon.
Only downside is, is that you cannot wrap a get function from a class based view, so I went one level lower to the function that really needed some caching.
At present using this inside a class based view:
Causes an error:
AttributeError: 'functools.partial' object has no attribute '__module__'
The error arises in
jobs.prepare_args
which uses("%s:%s" % (fn.__module__, fn.__name__),) + args
to serialise the function for the queue. The suggestion here: https://stackoverflow.com/questions/20594193/dynamically-created-method-and-decorator-got-error-functools-partial-object-hIs that in python 3.5 and later a reference to the original function is maintained in the partial. You can access it as
.func
.The text was updated successfully, but these errors were encountered: