Lambda functions no longer work with Django migrations
bschuon opened this issue · comments
bschuon commented
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"