Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lambda functions no longer work with Django migrations #72

Open
bschuon opened this issue Jan 13, 2022 · 0 comments
Open

Lambda functions no longer work with Django migrations #72

bschuon opened this issue Jan 13, 2022 · 0 comments

Comments

@bschuon
Copy link

bschuon commented Jan 13, 2022

To use a function (like slugifying someone's full name, which requires an instance of the model), in the past you could use a Lambda function. However, trying to do an (unrelated) migration on that model now raises an error:

"ValueError: Cannot serialize function: lambda"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant