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
I'm trying to set up object caching for my Django project but the Any Urlfields I'm using are keeping the python serializer from pickling. It seems that this use of a lambda is causing it to throw this error:
This function should indeed be a callable, to avoid hitting the ORM too early. This function could be called from an __init__.py when someone registers a new URL type. If a partial works for you, by all means, provide a nice pull request for it!
I'm trying to set up object caching for my Django project but the Any Urlfields I'm using are keeping the python serializer from pickling. It seems that this use of a lambda is causing it to throw this error:
Is there a reason that you want to leave this callable?
Could the
lambda
be removed?Or if it needs to be callable, a partial function could work:
The text was updated successfully, but these errors were encountered: